// Refactoring of shop class with new context
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7604 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -87,7 +87,7 @@ class ShopUrlCore extends ObjectModel
|
||||
if (!self::$main_domain)
|
||||
self::$main_domain = Db::getInstance()->getValue('SELECT domain
|
||||
FROM '._DB_PREFIX_.'shop_url
|
||||
WHERE main=1 AND id_shop='.(int)Shop::getCurrentShop());
|
||||
WHERE main=1 AND id_shop='.Context::getContext()->shop->getID());
|
||||
return self::$main_domain;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class ShopUrlCore extends ObjectModel
|
||||
if (!self::$main_domain)
|
||||
self::$main_domain = Db::getInstance()->getValue('SELECT domain
|
||||
FROM '._DB_PREFIX_.'shop_url
|
||||
WHERE main=1 AND id_shop='.(int)Shop::getCurrentShop());
|
||||
WHERE main=1 AND id_shop='.Context::getContext()->shop->getID());
|
||||
return self::$main_domain_ssl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user