[+] Dispatcher

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7069 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2011-06-15 16:32:06 +00:00
parent fbe279894a
commit 4a210f98d9
140 changed files with 936 additions and 534 deletions
+13 -2
View File
@@ -1,6 +1,6 @@
<?php
/*
* 2007-2011 PrestaShop
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
@@ -26,4 +26,15 @@
*/
require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('CMSController')->run();
Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/cms'.$params);