From 7840b56dbdd43d29e684c9078cabc8c123a25561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 4 Dec 2024 21:49:05 +0100 Subject: [PATCH] Revert "bug installation WIP" This reverts commit fd6ceed527502b8eb219e08de92985bdd4c82042. --- core/module/install/install.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index be0950a1..d32008e7 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -128,10 +128,9 @@ class install extends common } // Installation du site de test - $sample = false; if ( $this->getInput('installDefaultData', helper::FILTER_BOOLEAN) === false - && self::$i18nUI === 'fr_FR' + && $_SESSION['ZWII_SITE_CONTENT'] === 'fr_FR' ) { $sample = true; } @@ -139,11 +138,6 @@ class install extends common $this->initData('module', $_SESSION['ZWII_SITE_CONTENT'], $sample); $this->initData('locale', $_SESSION['ZWII_SITE_CONTENT'], $sample); - $this->saveDB('page'); - $this->saveDB('module'); - $this->saveDB('locale'); - - // Création de l'utilisateur si les données sont complétées. // success retour de l'enregistrement des données $this->setData([