Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r1560 -r1676 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 1560) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 1676) @@ -110,15 +110,17 @@ function includeConfigFiles() { - foreach ($this->configFiles as $filename) { - if ( defined('DEBUG_MODE') && DEBUG_MODE && dbg_ConstOn('DBG_PROFILE_INCLUDES')) { - + foreach ($this->configFiles as $filename) + { + $config_found = file_exists(DOC_ROOT.BASE_PATH.$filename); + if( defined('DEBUG_MODE') && DEBUG_MODE && dbg_ConstOn('DBG_PROFILE_INCLUDES')) + { if ( in_array($filename, get_required_files()) ) return; global $debugger; $debugger->IncludeLevel++; $before_time = getmicrotime(); $before_mem = memory_get_usage(); - include_once(DOC_ROOT.BASE_PATH.$filename); + if($config_found) include_once(DOC_ROOT.BASE_PATH.$filename); $used_time = getmicrotime() - $before_time; $used_mem = memory_get_usage() - $before_mem; $debugger->IncludeLevel--; @@ -127,15 +129,17 @@ $debugger->IncludesData['time'][] = $used_time; $debugger->IncludesData['level'][] = -1; } - else { - include_once(DOC_ROOT.BASE_PATH.$filename); + else + { + if($config_found) include_once(DOC_ROOT.BASE_PATH.$filename); } - - $prefix=$config['Prefix']; - $config['BasePath']=dirname(DOC_ROOT.BASE_PATH.$filename); - $this->configData[$prefix] = $config; - + if($config_found) + { + $prefix = $config['Prefix']; + $config['BasePath'] = dirname(DOC_ROOT.BASE_PATH.$filename); + $this->configData[$prefix] = $config; + } } }