diff --git a/controllers/admin/AdminHomeController.php b/controllers/admin/AdminHomeController.php index 6c2cd97e6..b9b70f12c 100644 --- a/controllers/admin/AdminHomeController.php +++ b/controllers/admin/AdminHomeController.php @@ -165,9 +165,13 @@ class AdminHomeControllerCore extends AdminController protected function warnDomainName() { - if ($_SERVER['HTTP_HOST'] != Configuration::get('PS_SHOP_DOMAIN') && $_SERVER['HTTP_HOST'] != Configuration::get('PS_SHOP_DOMAIN_SSL')) + if (Shop::isFeatureActive()) + return; + + $shop = Context::getContext()->shop; + if ($_SERVER['HTTP_HOST'] != $shop->domain && $_SERVER['HTTP_HOST'] != $shop->domain_ssl) $this->displayWarning($this->l('You are currently connected with the following domain name:').' '.$_SERVER['HTTP_HOST'].'
'. - $this->l('This one is different from the main shop domain name set in "Preferences > SEO & URLs":').' '.Configuration::get('PS_SHOP_DOMAIN').'
+ $this->l('This one is different from the main shop domain name set in shop tab:').' '.$shop->domain.'
'. $this->l('Click here if you want to modify the main shop domain name').''); }