Index: branches/5.0.x/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r13279 -r13289 --- branches/5.0.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 13279) +++ branches/5.0.x/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 13289) @@ -1,6 +1,6 @@ prefixFiles[$prefix]; $prefix = $this->PreloadConfigFile($file); + if ($this->FinalStage) { + // run prefix OnAfterConfigRead so all + // hooks to it can define their clonses + $this->runAfterConfigRead($prefix); + } + $clones = $this->postProcessConfig($prefix, 'AggregateConfigs', 'sub_prefix'); $clones = array_merge($this->postProcessConfig($prefix, 'Clones', 'prefix'), $clones); if ($this->FinalStage) { - array_unshift($clones, $prefix); $clones = array_unique($clones); foreach ($clones as $a_prefix) { $this->runAfterConfigRead($a_prefix);