Browse Source

loading the ExceptionRenderer

José Lorenzo Rodríguez 15 years ago
parent
commit
e3f85ccda8
2 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Error/ErrorHandler.php
  2. 0 0
      lib/Cake/Error/ExceptionRenderer.php

+ 1 - 1
lib/Cake/Error/ErrorHandler.php

@@ -22,6 +22,7 @@
 
 App::uses('Debugger', 'Utility');
 App::uses('CakeLog', 'Log');
+App::uses('ExceptionRenderer', 'Error');
 
 /**
  *
@@ -107,7 +108,6 @@ class ErrorHandler {
  * @see http://php.net/manual/en/function.set-exception-handler.php
  */
 	public static function handleException(Exception $exception) {
-		App::import('Core', 'error/ExceptionRenderer');
 		$config = Configure::read('Exception');
 		if (!empty($config['log'])) {
 			CakeLog::write(LOG_ERR, '[' . get_class($exception) . '] ' . $exception->getMessage());

cake/libs/error/exception_renderer.php → lib/Cake/Error/ExceptionRenderer.php