Roxen.git/
server/
modules/
graphics/
cimg.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-07-05
2000-07-05 12:36:23 by Per Hedbor <ph@opera.com>
9e5d9c16259f482c0cf31ec7d0238d1260aed0bc (
13
lines) (+
10
/-
3
)
[
Show
|
Annotate
]
Branch:
2.0
Backported stat-check from 2.1
Rev: server/modules/graphics/cimg.pike:1.20
8:
roxen.ImageCache the_cache;
-
constant cvs_version = "$Id: cimg.pike,v 1.
19
2000/
06
/
01
14
:36:
47
nilsson
Exp $";
+
constant cvs_version = "$Id: cimg.pike,v 1.
20
2000/
07
/
05
12
:36:
23
per
Exp $";
constant module_type = MODULE_PARSER; constant module_name = "Image converter"; constant module_doc = "Provides the tag <tt><cimg></tt> that can be used "
105:
"data":args->data, ]);
-
a
["background
-
color"]
= id->
misc
->
defines
->
bgcolor
-
|| "#eeeeee"
;
+
if(
a-
>src
)
+
catch
+
{
+
a->stat
=
(
id->
conf
->
stat_file( a
->
src,id
) ||
+
file_stat(
a->src
))[
ST_MTIME
];
+
}
;
-
+
a["background-color"] = id->misc->defines->bgcolor || "#eeeeee";
+
foreach( glob( "*-*", indices(args)), string n ) a[n] = args[n];