From 5cdb3bfc919ca92e10071159eeea8e13644a667a Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 4 Mar 2007 03:45:44 +0000 Subject: [PATCH] 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 --- cake/bootstrap.php | 1 - cake/libs/configure.php | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); }