Browse Source

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
phpnut 19 years ago
parent
commit
5cdb3bfc91
2 changed files with 4 additions and 1 deletions
  1. 0 1
      cake/bootstrap.php
  2. 4 0
      cake/libs/configure.php

+ 0 - 1
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');

+ 4 - 0
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);
 			}