Branch: Tag:

2006-05-31

2006-05-31 15:32:56 by Martin Stjernholm <mast@lysator.liu.se>

Pass an extra argument to RoxenModule.start to make it possible to tell
whether a module is being added through the admin interface or just being
loaded from an existing configuration.

Rev: server/base_server/configuration.pike:1.609
Rev: server/config_interface/sites/add_module.pike:1.85
Rev: server/site_templates/common.pike:1.28

1: - // $Id: add_module.pike,v 1.84 2006/02/07 10:52:52 jonasw Exp $ + // $Id: add_module.pike,v 1.85 2006/05/31 15:32:56 mast Exp $      #include <config_interface.h>   #include <module.h>
841:    if( num ) Roxen.parse_rxml( cf_form, id );    foreach( modules, string mod )    conf->call_high_start_callbacks( conf->find_module( replace(mod,"!","#") ), -  roxen.find_module( (mod/"!")[0] ) ); +  roxen.find_module( (mod/"!")[0] ), +  1);    already_added = ([ ]);    conf->save( ); // save it all in one go    conf->forcibly_added = ([]);