[9.1.08] réécriture d'URL désactivée après mise à jour auto

This commit is contained in:
fredtempez 2019-06-03 10:06:17 +02:00
parent 9edc7280a4
commit 5d5ce25c1f
1 changed files with 2 additions and 1 deletions

View File

@ -189,10 +189,11 @@ class install extends common {
case 4:
$success = true;
// Réécriture d'URL
if($this->getInput('data', helper::FILTER_BOOLEAN)) {
if ($this->getInput('data', helper::FILTER_BOOLEAN) === 1) {
$success = (file_put_contents(
'.htaccess',
PHP_EOL .
'#' . $rewrite . '#' . PHP_EOL .
'<ifModule mod_rewrite.c>' . PHP_EOL .
"\tRewriteEngine on" . PHP_EOL .
"\tRewriteBase " . helper::baseUrl(false, false) . PHP_EOL .