Index: branches/unlabeled/unlabeled-1.76.2/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r8242 -r8339 --- branches/unlabeled/unlabeled-1.76.2/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 8242) +++ branches/unlabeled/unlabeled-1.76.2/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 8339) @@ -243,6 +243,14 @@ if ($this->StoreCache) { $this->processDynamicClones(); $this->CacheParsedData(); + + if ($this->Application->isDebugMode(false) && constOn('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; + $this->ValidateConfig($prefix); + } + } } } @@ -394,10 +402,6 @@ // replacement templates defined in this config $this->Application->ReplacementTemplates = array_merge_recursive2($this->Application->ReplacementTemplates, $config['ReplacementTemplates']); } - - if ( $this->Application->isDebugMode(false) && constOn('DBG_VALIDATE_CONFIGS') && isset($config['TableName']) ) { - $this->ValidateConfig($prefix); - } } function ValidateConfig($prefix)