// Context part 23

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7765 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-27 15:08:15 +00:00
parent be4811aa6e
commit df255f66c1
3 changed files with 24 additions and 25 deletions
+2 -4
View File
@@ -271,14 +271,12 @@ class LinkCore
* @param string $request
* @param Context $context
*/
public function getPageLink($controller, $ssl = false, $id_lang = null, $request = null, Context $context = null)
public function getPageLink($controller, $ssl = false, $id_lang = null, $request = null)
{
$controller = str_replace('.php', '', $controller);
if (!$context)
$context = Context::getContext();
if (!$id_lang)
$id_lang = (int)$context->language->id;
$id_lang = (int)Context::getContext()->language->id;
$uri_path = Dispatcher::getInstance()->createUrl($controller);
$url = ($ssl AND Configuration::get('PS_SSL_ENABLED')) ? Tools::getShopDomainSsl(true) : Tools::getShopDomain(true);