Fixes #3261, AppController methods are made protected

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5672 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-09-19 14:42:07 +00:00
parent 3ce10a4826
commit a1df2ac915

View file

@ -166,7 +166,7 @@ class Dispatcher extends Object {
}
}
$protected = array_map('strtolower', get_class_methods('appcontroller'));
$protected = array_map('strtolower', get_class_methods('controller'));
$classMethods = array_map('strtolower', get_class_methods($controller));
if (in_array(low($this->params['action']), $protected) || strpos($this->params['action'], '_', 0) === 0) {