[-] CORE : Bug Fixed #PSCFV-2703 - Unable to redirect if one arg contain .php

This commit is contained in:
fBrignoli
2012-06-07 08:50:54 +00:00
parent 1c467ece7d
commit 92f782216d
+2 -1
View File
@@ -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).'/';
}
}