Index: branches/unlabeled/unlabeled-1.115.2/core/kernel/application.php =================================================================== diff -u -r4217 -r4278 --- branches/unlabeled/unlabeled-1.115.2/core/kernel/application.php (.../application.php) (revision 4217) +++ branches/unlabeled/unlabeled-1.115.2/core/kernel/application.php (.../application.php) (revision 4278) @@ -186,8 +186,8 @@ $this->DB = new kDBConnection(SQL_TYPE, Array(&$this,'handleSQLError') ); $this->DB->Connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB); $this->DB->debugMode = $this->isDebugMode(); - - $this->ModuleInfo = $this->DB->Query('SELECT * FROM '.TABLE_PREFIX.'Modules ORDER BY LoadOrder', 'Name'); + + $this->refreshModuleInfo(); $this->ConfigHash = $this->DB->GetCol('SELECT VariableValue, VariableName FROM '.TABLE_PREFIX.'ConfigurationValues', 'VariableName'); $rewrite_on = $this->ConfigValue('UseModRewrite'); @@ -239,6 +239,11 @@ return true; } + function refreshModuleInfo() + { + $this->ModuleInfo = $this->DB->Query('SELECT * FROM '.TABLE_PREFIX.'Modules ORDER BY LoadOrder', 'Name'); + } + /** * Checks if passed language id if valid and sets it to primary otherwise *