mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
"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:
parent
0427272236
commit
de67e299a9
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue