Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2009, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.313 2010/04/27 13:36:56 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.314 2011/01/20 23:49:17 jonasw Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphics: Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:977: Inside #if constant(Image.GIF) && constant(Image.GIF.encode)
   if (!arg->format)   #if constant(Image.GIF) && constant(Image.GIF.encode)    arg->format = "gif";   #else    arg->format = "jpg";   #endif       foreach(filearg, string tmp)    if(string path = arg[tmp])    { +  // Reject empty file paths for sufficiently high compat_level +  if (path == "" && compat_level >= "5.2") +  RXML.parse_error("Empty " + tmp + " attribute not allowed."); +     if (!has_prefix(tmp, "magic-")) {    p[tmp] = Roxen.fix_relative(path, id);    p[tmp + "_stat"] = get_file_stat(path, id);   #if constant(Sitebuilder)    // The file we called get_file_stat() on above may be a SiteBuilder    // file. If so we need to extend the argument data with e.g.    // current language fork.    if (Sitebuilder.sb_prepare_imagecache)    p = Sitebuilder.sb_prepare_imagecache(p, path, id);   #endif