[-] FO: Fix #PSCFV-5025

This commit is contained in:
rGaillard committed 2012-10-17 08:58:20 +00:00
1 parent 126df4663d
commit e784be3e6a
1 file changed
+4 -1
+4 -1
View File
@@ -321,7 +321,10 @@ class LinkCore
// If the module has its own route ... just use it ! // If the module has its own route ... just use it !
if (Dispatcher::getInstance()->hasRoute('module-'.$module.'-'.$controller, $id_lang)) if (Dispatcher::getInstance()->hasRoute('module-'.$module.'-'.$controller, $id_lang))
{
unset($params['module']);
return $this->getPageLink('module-'.$module.'-'.$controller, $ssl, $id_lang, $params); return $this->getPageLink('module-'.$module.'-'.$controller, $ssl, $id_lang, $params);
}
else else
return $url.Dispatcher::getInstance()->createUrl('module', $id_lang, $params, $this->allow); return $url.Dispatcher::getInstance()->createUrl('module', $id_lang, $params, $this->allow);
} }
@@ -409,7 +412,7 @@ class LinkCore
$request = urlencode($request); $request = urlencode($request);
parse_str($request, $request); parse_str($request, $request);
} }
unset($request['controller'], $request['module']); unset($request['controller']);
$uri_path = Dispatcher::getInstance()->createUrl($controller, $id_lang, $request); $uri_path = Dispatcher::getInstance()->createUrl($controller, $id_lang, $request);
$url = ($ssl && $this->ssl_enable) ? Tools::getShopDomainSsl(true) : Tools::getShopDomain(true); $url = ($ssl && $this->ssl_enable) ? Tools::getShopDomainSsl(true) : Tools::getShopDomain(true);