示例#1
0
 public static function resetMainDomainCache()
 {
     self::$main_domain = array();
     self::$main_domain_ssl = array();
 }
示例#2
0
    public static function getMainShopDomainSSL()
    {
        if (!self::$main_domain_ssl) {
            $sql = 'SELECT domain_ssl
					FROM ' . _DB_PREFIX_ . 'shop_url
					WHERE main = 1
						AND id_shop=' . Context::getContext()->shop->id;
            self::$main_domain_ssl = Db::getInstance()->getValue($sql);
        }
        return self::$main_domain_ssl;
    }