[-] 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
This commit is contained in:
fBrignoli
2012-06-07 08:50:54 +00:00
parent db18281b19
commit 18af073197
+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).'/';
}
}