mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fixes #4610, missing methods in ErrorHandler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6779 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
a5822e6967
commit
c6e1a59891
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class ErrorHandler extends Object {
|
|||
return $this->controller->appError($method, $messages);
|
||||
}
|
||||
|
||||
if (!in_array($method, get_class_methods($this))) {
|
||||
if (!in_array(strtolower($method), array_map('strtolower', get_class_methods($this)))) {
|
||||
$method = 'error';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue