mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixes #3244,loadControllers() does not work
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5663 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
39612a9bad
commit
a55aa374c7
1 changed files with 3 additions and 2 deletions
|
@ -314,8 +314,9 @@
|
||||||
foreach ($paths->controllerPaths as $path) {
|
foreach ($paths->controllerPaths as $path) {
|
||||||
foreach (listClasses($path) as $controller) {
|
foreach (listClasses($path) as $controller) {
|
||||||
list($name) = explode('.', $controller);
|
list($name) = explode('.', $controller);
|
||||||
$className = Inflector::camelize($name);
|
$className = Inflector::camelize(str_replace('_controller', '', $name));
|
||||||
if (loadController($name)) {
|
|
||||||
|
if (loadController($className)) {
|
||||||
$loadedControllers[$controller] = $className;
|
$loadedControllers[$controller] = $className;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue