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:
gwoo 2008-05-09 16:35:43 +00:00
parent a5822e6967
commit c6e1a59891

View file

@ -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';
}