Example #1
0
 public static function resetMainDomainCache()
 {
     self::$main_domain = array();
     self::$main_domain_ssl = array();
 }
Example #2
0
    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;
    }