mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
21c077925e
commit
7ab8875a9c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue