Branch: Tag:

2000-12-04

2000-12-04 18:05:13 by Martin Nilsson <mani@lysator.liu.se>

If a file wasn't found, don't try to load it. Fixes [bug 848 (#848)].

Rev: server/modules/tags/rxmltags.pike:1.191

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version = "$Id: rxmltags.pike,v 1.190 2000/11/23 23:28:48 nilsson Exp $"; + constant cvs_version = "$Id: rxmltags.pike,v 1.191 2000/12/04 18:05:13 nilsson Exp $";   constant thread_safe = 1;   constant language = roxen->language;   
906:       string get_data(string var, mapping args, RequestID id) {    string filename=id->conf->real_file(Roxen.fix_relative(var, id), id); +  if(!filename) +  RXML.run_error("Could not find the file %s.\n", Roxen.fix_relative(var, id));    Stdio.File file=Stdio.File(filename, "r");    if(file)    return file->read();