// Fix shop_url when no physical_uri + fix shop association when multistore is disactivated

This commit is contained in:
rMalie
2011-08-09 13:20:26 +00:00
parent c61b127f66
commit 4831043753
6 changed files with 32 additions and 14 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ class AdminShopUrl extends AdminTab
if ($beforeUpdate->main AND !Tools::getValue('main'))
$this->_errors[] = Tools::displayError('You must have a main url per shop');
}
if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('uri')))
if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('physical_uri'), Tools::getValue('virtual_uri')))
$this->_errors[] = Tools::displayError('A shop url that use this domain and uri already exists');
Tools::generateHtaccess(dirname(__FILE__).'/../../.htaccess', Configuration::get('PS_REWRITING_SETTINGS'), Configuration::get('PS_HTACCESS_CACHE_CONTROL'), '');