Branch: Tag:

2002-11-05

2002-11-05 18:09:56 by Anders Johansson <anders@roxen.com>

Implemented try_stat_file().

Rev: server/base_server/configuration.pike:1.527
Rev: server/modules/graphics/cimg.pike:1.55

7:      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.54 2002/10/24 09:45:56 jonasw Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.55 2002/11/05 18:09:56 anders Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Graphics: Image converter";   constant module_doc = "Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "
252:    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 );