Moving loading of Debugger class to Configure::write() so it loads only when DEBUG > 0

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4568 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-03-04 03:45:44 +00:00
parent 7c9e71e72d
commit 5cdb3bfc91
2 changed files with 4 additions and 1 deletions

View file

@ -43,7 +43,6 @@ if (!defined('PHP5')) {
require LIBS . 'security.php'; require LIBS . 'security.php';
require LIBS . 'inflector.php'; require LIBS . 'inflector.php';
require LIBS . 'configure.php'; require LIBS . 'configure.php';
require LIBS . 'debugger.php';
$paths = Configure::getInstance(); $paths = Configure::getInstance();
Configure::store(null, 'class.paths'); Configure::store(null, 'class.paths');
Configure::load('class.paths'); Configure::load('class.paths');

View file

@ -142,6 +142,10 @@ class Configure extends Object {
if (function_exists('ini_set')) { if (function_exists('ini_set')) {
ini_set('display_errors', 1); ini_set('display_errors', 1);
} }
if(!class_exists('Debugger')) {
require LIBS . 'debugger.php';
}
} else { } else {
error_reporting(0); error_reporting(0);
} }