[*] FO : Add mobile detection and mobile theme dispatcher

This commit is contained in:
nPellicari
2012-03-06 09:00:25 +00:00
parent e35581f8d9
commit f7b97fee7a
7 changed files with 197 additions and 22 deletions
+2 -2
View File
@@ -251,7 +251,7 @@ class DispatcherCore
$controllers['contactform'] = $controllers['contact'];
if (!isset($controllers[$this->controller]))
$this->controller = 'pagenotfound';
$this->controller = $this->controller_not_found;
$controller_class = $controllers[$this->controller];
break;
@@ -632,7 +632,7 @@ class DispatcherCore
$controllers += Dispatcher::getControllersInDirectory($dir.$controller_filename.DIRECTORY_SEPARATOR);
else if ($controller_filename != 'index.php')
{
$key = str_replace(array('controller.php', '.php'), array('', ''), strtolower($controller_filename));
$key = str_replace(array('controller.php', '.php'), '', strtolower($controller_filename));
$controllers[$key] = basename($controller_filename, '.php');
}
}