From 92f782216d8b7dafe0c8795e3b23355391c8e8b4 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 --- 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).'/'; } } +