Branch: Tag:

2001-11-27

2001-11-27 18:06:46 by Martin Stjernholm <mast@lysator.liu.se>

Reverted that; it's better to consider id->misc->common a legacy item. New
code should use id->root_id->misc.

Rev: server/base_server/configuration.pike:1.497
Rev: server/base_server/prototypes.pike:1.46
Rev: server/base_server/roxen.pike:1.766
Rev: server/protocols/http.pike:1.350

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.496 2001/11/27 17:56:24 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.497 2001/11/27 18:06:44 mast Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
2230:    if(!objectp(id))    error("No ID passed to 'try_get_file'\n");    +  // id->misc->common is here for compatibility; it's better to use +  // id->root_id->misc. +  if ( !id->misc ) +  id->misc = ([]); +  if ( !id->misc->common ) +  id->misc->common = ([]); +     fake_id = id->clone_me();    -  +  fake_id->misc->common = id->misc->common;    fake_id->misc->internal_get = !not_internal;       if (fake_id->scan_for_query)