Branch: Tag:

2000-12-05

2000-12-05 00:41:39 by Martin Nilsson <mani@lysator.liu.se>

query_internal_location -> query_absolute_internal_location

Rev: server/modules/graphics/atlas.pike:1.2
Rev: server/modules/graphics/business_graphics/business.pike:1.136
Rev: server/modules/graphics/cimg.pike:1.33
Rev: server/modules/graphics/gbutton.pike:1.68
Rev: server/modules/graphics/graphic_text.pike:1.253
Rev: server/modules/graphics/rimage/rimage.pike:1.19
Rev: server/modules/misc/robots.txt.pike:1.2
Rev: server/modules/tags/check_spelling.pike:1.14

7:      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.32 2000/11/21 13:14:49 per Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.33 2000/12/05 00:39:53 nilsson Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Image converter";   constant module_doc = "Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "
230:    mapping a = get_my_args( check_args( args ), id );    string data;    -  res->src = (query_internal_location()+the_cache->store( a,id )); +  res->src = (query_absolute_internal_location(id)+the_cache->store( a,id ));    data = the_cache->data( a, id , 0 );    res["file-size"] = strlen(data);    res["file-size-kb"] = strlen(data)/1024;
254:    {    mapping a = get_my_args( check_args( args ), id );    args -= a; -  args->src = query_internal_location()+the_cache->store( a,id ); +  args->src = query_absolute_internal_location(id)+the_cache->store( a,id );    if( mapping size = the_cache->metadata( a, id, 1 ) )    {    // image in cache (1 above prevents generation on-the-fly)
280:       array do_return(RequestID id)    { -  result = query_internal_location()+ +  result = query_absolute_internal_location(id)+    the_cache->store(get_my_args(check_args( args ), id ),id);    return 0;    }    }   }