Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -N -r3162 -r3216 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 3162) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 3216) @@ -85,7 +85,8 @@ $this->CacheExpired = true; $file = $this->getConfigName($full_path); - if ( defined('DEBUG_MODE') && dbg_ConstOn('DBG_PROFILE_INCLUDES')) { + if ( $this->Application->isDebugMode() && constOn('DBG_PROFILE_INCLUDES') ) + { if ( in_array($file, get_required_files()) ) return; global $debugger; @@ -171,7 +172,7 @@ foreach ($this->configFiles as $filename) { $config_found = file_exists(FULL_PATH.$filename) && $this->configAllowed($filename); - if( defined('DEBUG_MODE') && DEBUG_MODE && dbg_ConstOn('DBG_PROFILE_INCLUDES')) + if( $this->Application->isDebugMode() && constOn('DBG_PROFILE_INCLUDES') ) { if ( in_array($filename, get_required_files()) ) return; global $debugger;