From 7ab8875a9c799be59b26e737184695452fe21f31 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 16 Sep 2007 01:56:31 +0000 Subject: [PATCH] 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 --- cake/basics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/basics.php b/cake/basics.php index f4c5b62c9..3135c2dbb 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -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);