"Adding fix for bug introduced in [6407] that does not load the core ErrorHandler class"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6637 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-04-08 01:43:36 +00:00
parent 0427272236
commit de67e299a9

View file

@ -174,12 +174,12 @@ class Object {
*/
function cakeError($method, $messages) {
if (!class_exists('ErrorHandler')) {
App::import('Core', 'Error');
if (file_exists(APP . 'error.php')) {
include_once (APP . 'error.php');
} elseif (file_exists(APP . 'app_error.php')) {
include_once (APP . 'app_error.php');
} else {
App::import('Core', 'Error');
}
}