mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
7c9e71e72d
commit
5cdb3bfc91
2 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue