// Fix little bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11078 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
5b36a76462
commit
43ff904c57
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -1517,7 +1517,7 @@ class ToolsCore
|
|||||||
foreach (ShopUrl::getShopUrls() as $shop_url)
|
foreach (ShopUrl::getShopUrls() as $shop_url)
|
||||||
{
|
{
|
||||||
if (!isset($domains[$shop_url->domain]))
|
if (!isset($domains[$shop_url->domain]))
|
||||||
$domains[$shop_url['domain']] = array();
|
$domains[$shop_url->domain] = array();
|
||||||
|
|
||||||
$domains[$shop_url->domain][] = array(
|
$domains[$shop_url->domain][] = array(
|
||||||
'physical' => $shop_url->physical_uri,
|
'physical' => $shop_url->physical_uri,
|
||||||
|
|||||||
@@ -254,6 +254,7 @@ class AdminShopUrlControllerCore extends AdminController
|
|||||||
$this->_errors[] = Tools::displayError('A shop url that use this domain and uri already exists');
|
$this->_errors[] = Tools::displayError('A shop url that use this domain and uri already exists');
|
||||||
|
|
||||||
parent::postProcess();
|
parent::postProcess();
|
||||||
|
if (!$this->_errors)
|
||||||
Tools::generateHtaccess(dirname(__FILE__).'/../../.htaccess', Configuration::get('PS_REWRITING_SETTINGS'), Configuration::get('PS_HTACCESS_CACHE_CONTROL'), '');
|
Tools::generateHtaccess(dirname(__FILE__).'/../../.htaccess', Configuration::get('PS_REWRITING_SETTINGS'), Configuration::get('PS_HTACCESS_CACHE_CONTROL'), '');
|
||||||
}
|
}
|
||||||
elseif ((isset($_GET['status'.$this->table]) || isset($_GET['status'])) && Tools::getValue($this->identifier))
|
elseif ((isset($_GET['status'.$this->table]) || isset($_GET['status'])) && Tools::getValue($this->identifier))
|
||||||
|
|||||||
Reference in new issue
Block a user