// Fix Bug with function ShopUrl::getMainShopDomainSSL

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12925 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte committed 2012-02-02 10:40:20 +00:00
1 parent d1afff824a
commit cca93f2c6d
1 file changed
+3 -3
+3 -3
View File
@@ -149,13 +149,13 @@ class ShopUrlCore extends ObjectModel
public static function getMainShopDomainSSL() public static function getMainShopDomainSSL()
{ {
if (!self::$main_domain) if (!self::$main_domain_ssl)
{ {
$sql = 'SELECT domain $sql = 'SELECT domain_ssl
FROM '._DB_PREFIX_.'shop_url FROM '._DB_PREFIX_.'shop_url
WHERE main = 1 WHERE main = 1
AND id_shop='.Context::getContext()->shop->getID(true); AND id_shop='.Context::getContext()->shop->getID(true);
self::$main_domain = Db::getInstance()->getValue($sql); self::$main_domain_ssl = Db::getInstance()->getValue($sql);
} }
return self::$main_domain_ssl; return self::$main_domain_ssl;
} }