Roxen.git
/
server
/
modules
/
graphics
/
gbutton.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/graphics/gbutton.pike:20:
// icon-data -- inline icon data // align -- left|center|right text alignment // align-icon -- left|center-before|center-after|right icon alignment // valign-icon -- above|middle|below icon vertical alignment // >Button text</gbutton> // // Alignment restriction: when text alignment is either left or right, icons // must also be aligned left or right.
-
constant cvs_version = "$Id: gbutton.pike,v 1.
104
2004/
05
/
31
23
:
01
:
52
_cvs_
stephen
Exp $";
+
constant cvs_version = "$Id: gbutton.pike,v 1.
105
2004/
06/
05
15
:
19
:
45
_cvs_
dirix
Exp $";
constant thread_safe = 1; #include <module.h> #include <stat.h> inherit "module"; core.ImageCache button_cache; int do_ext; constant module_type = MODULE_TAG;
Roxen.git/server/modules/graphics/gbutton.pike:748:
int get_file_stat( string f, RequestID id ) { int res; mapping stat_cache; // -1 is used to cache negative results. When SiteBuilder crawler runs // we must let the stat_file() run unconditionally to register // dependencies properly. if (stat_cache = id->misc->gbutton_statcache) {
-
if (!id->misc->persistent_cache_crawler)
+
//
if (!id->misc->persistent_cache_crawler)
if (res = stat_cache[f]) return (res > 0) && res; } else stat_cache = id->misc->gbutton_statcache = ([ ]); int was_internal = id->misc->internal_get; id->misc->internal_get = 1; res = stat_cache[ f ] = (id->conf->stat_file( f,id ) || file_stat( f ) || ({ 0,0,0,0 }) )[ST_MTIME] || -1;