Branch: Tag:

2002-08-12

2002-08-12 16:10:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added detection of unknown configuration.
Fixes internal server error in [bug 3192 (#3192)].

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

708:    }    }    +  if (!conf) { +  return sprintf(LOCALE(0, "Configuration %O not found."), +  id->variables->config); +  } +     if( !conf->inited )    conf->enable_all_modules();   
722:    if( !config_perm( "Add Module" ) )    return LOCALE(226, "Permission denied");    -  if( id->variables->module_to_add ) +  if( id->variables->module_to_add && +  id->variables->config )    return do_it( id );       Configuration conf;