Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r6093 -r6583 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 6093) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 6583) @@ -70,6 +70,7 @@ 'Application.Caches.ConfigVariables' => $this->Application->Caches['ConfigVariables'], 'Application.ConfigCacheIds' => $this->Application->ConfigCacheIds, 'Application.ConfigHash' => $this->Application->ConfigHash, + 'Application.ReplacementTemplates' => $this->Application->ReplacementTemplates, 'Application.ModuleInfo' => $this->Application->ModuleInfo, ); @@ -105,6 +106,8 @@ $this->Application->Caches['ConfigVariables'] = $cache['Application.ConfigCacheIds']; $this->Application->ConfigCacheIds = $cache['Application.ConfigCacheIds']; + $this->Application->ReplacementTemplates = $cache['Application.ReplacementTemplates']; + $this->Application->ModuleInfo = $cache['Application.ModuleInfo']; return true; @@ -338,6 +341,11 @@ } } + if (isset($config['ReplacementTemplates']) && $config['ReplacementTemplates']) { + // replacement templates defined in this config + $this->Application->ReplacementTemplates = array_merge_recursive2($this->Application->ReplacementTemplates, $config['ReplacementTemplates']); + } + if ( $this->Application->isDebugMode() && constOn('DBG_VALIDATE_CONFIGS') && isset($config['TableName']) ) { global $debugger; @@ -623,6 +631,8 @@ $module_found = false; if (!$this->Application->ModuleInfo) return false; + if (preg_match('/\/plugins\//', $config_path)) return true; + foreach($this->Application->ModuleInfo as $module_name => $module_info) { $module_path = '/'.$module_info['Path'];