[-] BO : BugFix : #PSCFV-2423 / #PSCFV-2424 : .htaccess generation is improved (description updated if you cannot generate your htaccess)

This commit is contained in:
vChabot
2012-05-19 09:41:44 +00:00
parent 2d5dd192d0
commit 7eb57ecd56
+11 -4
View File
@@ -99,6 +99,15 @@ class AdminShopUrlControllerCore extends AdminController
public function renderForm()
{
$this->multiple_fieldsets = true;
if (!Configuration::get('PS_REWRITING_SETTINGS'))
$desc_virtual_uri = array(
$this->l('You need to activate the URL Rewriting if you want to add a virtual URI.')
);
else
$desc_virtual_uri = array(
$this->l('You can use this option if you want to create a store with an URI that doesn\'t exist on your server (e.g. if you want your store to be available with the URL www.my-prestashop.com/my-store/shoes/, you have to set shoes/ in this field, assuming that my-store/ is your Physical URI).'),
'<strong>'.$this->l('URL rewriting must be activated on your server to use this feature.').'</strong>'
);
$this->fields_form = array(
array(
'form' => array(
@@ -208,10 +217,8 @@ class AdminShopUrlControllerCore extends AdminController
'type' => 'text',
'label' => $this->l('Virtual URI:'),
'name' => 'virtual_uri',
'desc' => array(
$this->l('You can use this option if you want to create a store with an URI that doesn\'t exist on your server (e.g. if you want your store to be available with the URL www.my-prestashop.com/my-store/shoes/, you have to set shoes/ in this field, assuming that my-store/ is your Physical URI).'),
'<strong>'.$this->l('URL rewriting must be activated on your server to use this feature.').'</strong>'
),
'disabled' => !Configuration::get('PS_REWRITING_SETTINGS'),
'desc' => $desc_virtual_uri,
'size' => 50,
),
array(