From 3d9b61023c058e3d12045ae8229cc441f1587cac Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 6 Jul 2011 14:35:19 +0000 Subject: [PATCH] // Generate .htaccess in adminShopUrl git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7534 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/tabs/AdminShopUrl.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin-dev/tabs/AdminShopUrl.php b/admin-dev/tabs/AdminShopUrl.php index a28ec1bdf..ab5c8cdab 100755 --- a/admin-dev/tabs/AdminShopUrl.php +++ b/admin-dev/tabs/AdminShopUrl.php @@ -63,7 +63,10 @@ class AdminShopUrl extends AdminTab } if ($object->canAddThisUrl(Tools::getValue('domain'), Tools::getValue('domain_ssl'), Tools::getValue('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'), Configuration::get('PS_HTACCESS_SPECIFIC')); } + if (Tools::isSubmit('submitOptions'.$this->table)) { $baseUrls = array();