Fix install

This commit is contained in:
Fred Tempez 2023-04-11 07:13:33 +02:00
parent 6c008363cd
commit 7531973551

View File

@ -345,10 +345,10 @@ class install extends common
// Configuration // Configuration
case 4: case 4:
$success = true; $success = true;
$message = null; $message = '';
$rewrite = $this->getInput('data'); $rewrite = $this->getInput('data');
// Réécriture d'URL // Réécriture d'URL
if ($rewrite === "true") { // Ajout des lignes dans le .htaccess if ($rewrite === 'true') { // Ajout des lignes dans le .htaccess
$fileContent = file_get_contents('.htaccess'); $fileContent = file_get_contents('.htaccess');
$rewriteData = PHP_EOL . $rewriteData = PHP_EOL .
'# URL rewriting' . PHP_EOL . '# URL rewriting' . PHP_EOL .
@ -392,7 +392,6 @@ class install extends common
foreach ($installedUI as $key => $value) { foreach ($installedUI as $key => $value) {
if ($store[$key]['version'] > $value['version']) { if ($store[$key]['version'] > $value['version']) {
echo copy('core/module/install/ressource/i18n/' . $key . '.json', self::I18N_DIR . $key . '.json');
$this->setData(['languages', $key, $store[$key]]); $this->setData(['languages', $key, $store[$key]]);
} }
} }