Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r4770 -r4771 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4770) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4771) @@ -14,6 +14,8 @@ var $CacheExpired = false; var $prefixFiles = array(); + + var $ProcessAllConfigs = false; /** * Scan kernel and user classes @@ -119,6 +121,8 @@ { $restored = $this->RestoreParsedData(); if ($restored) return; + + $this->ProcessAllConfigs = true; $this->includeConfigFiles(); $this->ParseConfigs(); @@ -218,6 +222,11 @@ foreach ($this->configData as $prefix => $config) { $this->parseConfig($prefix); } + } + + function AfterConfigRead() + { + if (!$this->ProcessAllConfigs) return ; foreach ($this->configData as $prefix => $config) { $this->Application->HandleEvent( new kEvent($prefix.':OnAfterConfigRead') ); }