Branch: Tag:

2002-03-06

2002-03-06 13:10:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for [bug 2679 (#2679)].

Rev: server/config_interface/sites/add_module.pike:1.65

662:    if( id->variables->encoded )    id->variables->config = decode_site_name( id->variables->config );    -  Configuration conf = roxen.find_configuration( id->variables->config ); +  Configuration conf; +  foreach(id->variables->config/"\0", string config) { +  if (conf = roxen.find_configuration( id->variables->config )) { +  id->variables->config = config; +  break; +  } +  }       if( !conf->inited )    conf->enable_all_modules();
681:    if( id->variables->module_to_add )    return do_it( id );    -  object conf = roxen.find_configuration( id->variables->config ); +  Configuration conf; +  foreach(id->variables->config/"\0", string config) { +  if (conf = roxen.find_configuration( id->variables->config )) { +  id->variables->config = config; +  break; +  } +  }       if( !config_perm( "Site:"+conf->name ) )    return LOCALE(226,"Permission denied");