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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13866 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
nPellicari
2012-03-06 09:00:25 +00:00
parent ff22815522
commit b3f030f81e
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');
}
}