Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: module.pike,v 1.87 2000/03/18 02:59:18 mast Exp $ + // $Id: module.pike,v 1.88 2000/03/21 04:35:41 mast Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      mapping (string:array) variables=([]);   RoxenModule this = this_object();   mapping(string:array(int)) error_log=([]);      constant is_module = 1;
Roxen.git/server/base_server/module.pike:308:      static mapping locs = ([]);   void deflocaledoc( string locale, string variable,    string name, string doc, mapping|void translate )   {    if(!locs[locale] )    locs[locale] = RoxenLocale[locale]->register_module_doc;    if(!locs[locale])    report_debug("Invalid locale: "+locale+". Ignoring.\n");    else -  locs[locale]( this_object(), variable, name, doc, translate ); +  locs[locale]( this_object(), +  variable, +  name || variables[variable][VAR_NAME], +  doc || variables[variable][VAR_DOC_STR], +  translate );   }      void save_me()   {    my_configuration()->save_one( this_object() );   }      void save()   {    save_me();