From add5ab42ea391242f8be163cae1287e522551ccf Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 14 Jun 2012 13:04:24 +0000 Subject: [PATCH] // Fix index.php in dispatcher git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16018 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Dispatcher.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Dispatcher.php b/classes/Dispatcher.php index 02834b8e0..e45789442 100644 --- a/classes/Dispatcher.php +++ b/classes/Dispatcher.php @@ -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];