git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17076 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-29 14:22:23 +00:00
parent 82c4d22b71
commit 8c883798b5
4 changed files with 20 additions and 28 deletions
+2 -2
View File
@@ -734,9 +734,9 @@ class DispatcherCore
{
if ($controller_filename[0] != '.')
{
if (is_dir($dir.$controller_filename))
if (!strpos($controller_filename, '.php') && is_dir($dir.$controller_filename))
$controllers += Dispatcher::getControllersInDirectory($dir.$controller_filename.DIRECTORY_SEPARATOR);
else if ($controller_filename != 'index.php')
elseif ($controller_filename != 'index.php')
{
$key = str_replace(array('controller.php', '.php'), '', strtolower($controller_filename));
$controllers[$key] = basename($controller_filename, '.php');