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:
phpnut 2007-09-16 21:10:05 +00:00
parent 39612a9bad
commit a55aa374c7

View file

@ -314,8 +314,9 @@
foreach ($paths->controllerPaths as $path) {
foreach (listClasses($path) as $controller) {
list($name) = explode('.', $controller);
$className = Inflector::camelize($name);
if (loadController($name)) {
$className = Inflector::camelize(str_replace('_controller', '', $name));
if (loadController($className)) {
$loadedControllers[$controller] = $className;
}
}