[-] MO : Fixed #PNM-1600 by modifying getPageLink()
This commit is contained in:
1 parent
fa7d44d67f
commit
92cf31e5c3
1 file changed
+9
@@ -423,6 +423,15 @@ class LinkCore
|
|||||||
*/
|
*/
|
||||||
public function getPageLink($controller, $ssl = null, $id_lang = null, $request = null, $request_url_encode = false, $id_shop = null)
|
public function getPageLink($controller, $ssl = null, $id_lang = null, $request = null, $request_url_encode = false, $id_shop = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//If $controller contains '&' char, it means that $controller contains request data and must be parsed first
|
||||||
|
$p = strpos($controller, '&');
|
||||||
|
if ($p !== false) {
|
||||||
|
$request = substr($controller, $p + 1);
|
||||||
|
$request_url_encode = false;
|
||||||
|
$controller = substr($controller, 0, $p);
|
||||||
|
}
|
||||||
|
|
||||||
$controller = Tools::strReplaceFirst('.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;
|
||||||
|
|||||||
Reference in new issue
Block a user