diff --git a/cake/bootstrap.php b/cake/bootstrap.php index 1e2f834b5..eae863247 100644 --- a/cake/bootstrap.php +++ b/cake/bootstrap.php @@ -43,7 +43,6 @@ if (!defined('PHP5')) { require LIBS . 'security.php'; require LIBS . 'inflector.php'; require LIBS . 'configure.php'; - require LIBS . 'debugger.php'; $paths = Configure::getInstance(); Configure::store(null, 'class.paths'); Configure::load('class.paths'); diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 086e0c86a..106a28e3b 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -142,6 +142,10 @@ class Configure extends Object { if (function_exists('ini_set')) { ini_set('display_errors', 1); } + + if(!class_exists('Debugger')) { + require LIBS . 'debugger.php'; + } } else { error_reporting(0); }