Roxen.git/
server/
modules/
graphics/
cimg.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2002-11-07
2002-11-07 15:57:16 by Martin Nilsson <mani@lysator.liu.se>
a412dbe69b17ff4ff67d137e021aaf75b05c08aa (
10
lines) (+
4
/-
6
)
[
Show
|
Annotate
]
Branch:
Aphoto_2.0_beta3
Now uses try_stat_file.
Rev: server/modules/graphics/cimg.pike:1.53
7:
roxen.ImageCache the_cache;
-
constant cvs_version = "$Id: cimg.pike,v 1.
52
2002/
10
/
23
23
:
34
:
51
nilsson
Exp $";
+
constant cvs_version = "$Id: cimg.pike,v 1.
53
2002/
11
/
07
15
:
57
:
16
mani
Exp $";
constant module_type = MODULE_TAG; constant module_name = "Graphics: Image converter"; constant module_doc = "Provides the tag <tt><cimg></tt> that can be used "
240:
catch { a->src = Roxen.fix_relative( args->src, id );
-
int
was_internal = id->misc->internal_get;
-
id->misc->internal_get = 1;
-
Stat st = id->conf->stat_file(a->src, id) ||
file_stat(a->src);
-
if
(!was_internal)
-
m
_
delete
(
id
->
misc, "internal_get"
);
+
array(
int
)|
Stat st =
(
id->conf->
try_
stat_file(a->src, id) ||
+
file
_
stat
(
a
->
src
)
)
;
if (st) { string fn = id->conf->real_file( a->src, id );