diff --git a/controllers/admin/AdminHomeController.php b/controllers/admin/AdminHomeController.php
index 28622e379..3263c591d 100644
--- a/controllers/admin/AdminHomeController.php
+++ b/controllers/admin/AdminHomeController.php
@@ -170,10 +170,16 @@ class AdminHomeControllerCore extends AdminController
$shop = Context::getContext()->shop;
if ($_SERVER['HTTP_HOST'] != $shop->domain && $_SERVER['HTTP_HOST'] != $shop->domain_ssl && Tools::getValue('ajax') == false)
- $this->displayWarning($this->l('You are currently connected under the following domain name:').' '.$_SERVER['HTTP_HOST'].'
'.
- $this->l('This is different from the main shop domain name set in the "Multistore" page under the "Advanced Parameters" menu:').' '.$shop->domain.'
- '.
- $this->l('Click here if you want to modify your main shop\'s domain name.').'');
+ {
+ $warning = $this->l('You are currently connected under the following domain name:').' '.$_SERVER['HTTP_HOST'].'
';
+ if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE'))
+ $warning .= sprintf($this->l('This is different from the shop domain name set in the Multistore settings: "%s".'), $shop->domain).'
+ '.preg_replace('@{link}(.*){/link}@', '$1', $this->l('If this is your main domain, please {link}change it now{/link}.'));
+ else
+ $warning .= $this->l('This is different from the domain name set in the "SEO & URLs" tab.').'
+ '.preg_replace('@{link}(.*){/link}@', '$1', $this->l('If this is your main domain, please {link}change it now{/link}.'));
+ $this->displayWarning($warning);
+ }
}
protected function getQuickLinks()