[-] BO : BugFix : #PSCFV-2423 / #PSCFV-2424 : .htaccess generation is improved (description updated if you cannot generate your htaccess)
This commit is contained in:
1 parent
2d5dd192d0
commit
7eb57ecd56
1 file changed
+11
-4
@@ -99,6 +99,15 @@ class AdminShopUrlControllerCore extends AdminController
|
|||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
$this->multiple_fieldsets = true;
|
$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(
|
$this->fields_form = array(
|
||||||
array(
|
array(
|
||||||
'form' => array(
|
'form' => array(
|
||||||
@@ -208,10 +217,8 @@ class AdminShopUrlControllerCore extends AdminController
|
|||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => $this->l('Virtual URI:'),
|
'label' => $this->l('Virtual URI:'),
|
||||||
'name' => 'virtual_uri',
|
'name' => 'virtual_uri',
|
||||||
'desc' => array(
|
'disabled' => !Configuration::get('PS_REWRITING_SETTINGS'),
|
||||||
$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).'),
|
'desc' => $desc_virtual_uri,
|
||||||
'<strong>'.$this->l('URL rewriting must be activated on your server to use this feature.').'</strong>'
|
|
||||||
),
|
|
||||||
'size' => 50,
|
'size' => 50,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in new issue
Block a user