コード例 #1
0
ファイル: ShopUrl.php プロジェクト: jpodracky/dogs
 public static function resetMainDomainCache()
 {
     self::$main_domain = array();
     self::$main_domain_ssl = array();
 }
コード例 #2
0
ファイル: ShopUrl.php プロジェクト: jicheng17/vipinsg
    public static function getMainShopDomain()
    {
        if (!self::$main_domain) {
            self::$main_domain = Db::getInstance()->getValue('SELECT domain
															FROM ' . _DB_PREFIX_ . 'shop_url
															WHERE main=1 AND id_shop = ' . Context::getContext()->shop->id);
        }
        return self::$main_domain;
    }