From 79dda4918a8466025839bb4351ef272055e2fdaf 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 --- 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];