// Fix index.php in dispatcher

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16018 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-06-14 13:04:24 +00:00
parent 70bec3b36d
commit add5ab42ea
+2 -1
View File
@@ -524,7 +524,8 @@ class DispatcherCore
if (!isset($this->routes[$route_id]))
{
$query = http_build_query($params, '', '&');
return ($route_id == 'index') ? 'index.php'.(($query) ? '?'.$query : '') : 'index.php?controller='.$route_id.(($query) ? '&'.$query : '').$anchor;
$index_link = Configuration::get('PS_REWRITING_SETTINGS') ? '' : 'index.php';
return ($route_id == 'index') ? $index_link.(($query) ? '?'.$query : '') : 'index.php?controller='.$route_id.(($query) ? '&'.$query : '').$anchor;
}
$route = $this->routes[$route_id];