From 18af073197dc3e5b04b6211d47ebfce8de655ff9 Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Thu, 7 Jun 2012 08:50:54 +0000 Subject: [PATCH] [-] CORE : Bug Fixed #PSCFV-2703 - Unable to redirect if one arg contain .php git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15902 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Link.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Link.php b/classes/Link.php index 2f24df64e..8e597ae34 100644 --- a/classes/Link.php +++ b/classes/Link.php @@ -389,7 +389,7 @@ class LinkCore */ public function getPageLink($controller, $ssl = false, $id_lang = null, $request = null, $request_url_encode = false) { - $controller = str_replace('.php', '', $controller); + $controller = Tools::strReplaceFirst('.php', '', $controller); if (!$id_lang) $id_lang = (int)Context::getContext()->language->id; @@ -546,3 +546,4 @@ class LinkCore return Language::getIsoById($id_lang).'/'; } } +