This commit is contained in:
dMetzger
2012-08-29 14:22:23 +00:00
parent 56fe410f86
commit b51a95f9dd
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');