From fd6ceed527502b8eb219e08de92985bdd4c82042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Wed, 4 Dec 2024 14:57:03 +0100 Subject: [PATCH] bug installation WIP --- core/module/install/install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index d32008e7..be0950a1 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -128,9 +128,10 @@ class install extends common } // Installation du site de test + $sample = false; if ( $this->getInput('installDefaultData', helper::FILTER_BOOLEAN) === false - && $_SESSION['ZWII_SITE_CONTENT'] === 'fr_FR' + && self::$i18nUI === 'fr_FR' ) { $sample = true; } @@ -138,6 +139,11 @@ 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([