Index: branches/5.0.x/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r12299 -r12323 --- branches/5.0.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 12299) +++ branches/5.0.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 12323) @@ -1,6 +1,6 @@ _sortRewriteListeners(); $this->CacheParsedData(); - if ($this->Application->isDebugMode(false) && constOn('DBG_VALIDATE_CONFIGS')) { + if (defined('DEBUG_MODE') && DEBUG_MODE && defined('DBG_VALIDATE_CONFIGS') && DBG_VALIDATE_CONFIGS) { // validate configs here to have changes from OnAfterConfigRead hooks to prefixes foreach ($this->configData as $prefix => $config) { if (!isset($config['TableName'])) continue;