From e3f85ccda895e49e6a642f4256a365a7d45b468f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Sat, 4 Dec 2010 14:06:30 -0430 Subject: [PATCH] loading the ExceptionRenderer --- lib/Cake/Error/ErrorHandler.php | 2 +- .../Cake/Error/ExceptionRenderer.php | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename cake/libs/error/exception_renderer.php => lib/Cake/Error/ExceptionRenderer.php (100%) diff --git a/lib/Cake/Error/ErrorHandler.php b/lib/Cake/Error/ErrorHandler.php index 7dcdb6931..5124136c2 100644 --- a/lib/Cake/Error/ErrorHandler.php +++ b/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()); diff --git a/cake/libs/error/exception_renderer.php b/lib/Cake/Error/ExceptionRenderer.php similarity index 100% rename from cake/libs/error/exception_renderer.php rename to lib/Cake/Error/ExceptionRenderer.php