Closes #3254, loadController fails when requestAction is called multiple time on a Controller derived from an intermediate controller

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5649 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-09-16 01:56:31 +00:00
parent 21c077925e
commit 7ab8875a9c

View file

@ -386,7 +386,7 @@
$className = $name . 'Controller';
if (class_exists(low($className)) && low(get_parent_class($className)) == low($parent)) {
if (class_exists(low($className)) && is_subclass_of($className, $parent)) {
return true;
} else {
$name = Inflector::underscore($className);