// Refactoring of shop class with new context

This commit is contained in:
rMalie committed 2011-07-12 16:28:20 +00:00
1 parent e7ea230525
commit 2d77925e7d
28 files changed
+216 -185

No files matched your search

+2 -2
View File
@@ -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;
}
}