// Fix index.php in dispatcher

This commit is contained in:
rMalie committed 2012-06-14 13:04:24 +00:00
1 parent d4c728c4ff
commit c735d0ec1a
1 file changed
+2 -1
+2 -1
View File
@@ -524,7 +524,8 @@ class DispatcherCore
if (!isset($this->routes[$route_id])) if (!isset($this->routes[$route_id]))
{ {
$query = http_build_query($params, '', '&'); $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]; $route = $this->routes[$route_id];