[-] 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:
+2
-1
@@ -389,7 +389,7 @@ class LinkCore
|
|||||||
*/
|
*/
|
||||||
public function getPageLink($controller, $ssl = false, $id_lang = null, $request = null, $request_url_encode = false)
|
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)
|
if (!$id_lang)
|
||||||
$id_lang = (int)Context::getContext()->language->id;
|
$id_lang = (int)Context::getContext()->language->id;
|
||||||
@@ -546,3 +546,4 @@ class LinkCore
|
|||||||
return Language::getIsoById($id_lang).'/';
|
return Language::getIsoById($id_lang).'/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user