[*] BO : now you can't activate friendly URL when mod_rewrite is not active

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13713 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-02-29 08:13:09 +00:00
parent 7a6a998aab
commit bae15bcbcc
6 changed files with 66 additions and 7 deletions
+4 -2
View File
@@ -48,16 +48,18 @@ class AdminMetaControllerCore extends AdminController
);
$this->_group = 'GROUP BY a.id_meta';
$mod_rewrite = Tools::modRewriteActive();
$this->options = array(
'general' => array(
'title' => $this->l('URLs Setup'),
'fields' => array(
'PS_REWRITING_SETTINGS' => array(
'title' => $this->l('Friendly URL'),
'desc' => $this->l('Enable only if your server allows URL rewriting (recommended)'),
'desc' => ($mod_rewrite ? $this->l('Enable only if your server allows URL rewriting (recommended)') : ''),
'validation' => 'isBool',
'cast' => 'intval',
'type' => 'bool'
'type' => 'rewriting_settings',
'mod_rewrite' => $mod_rewrite
),
'PS_CANONICAL_REDIRECT' => array(
'title' => $this->l('Automatically redirect to Canonical url'),