From 5f2f9ee820da32376954e97eb05a0f1d59246478 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 18 Dec 2022 09:59:03 +0100 Subject: [PATCH] =?UTF-8?q?beta=2007=20pas=20de=20modules=20dans=20le=20si?= =?UTF-8?q?te=20de=20test=20en=20langues=20=C3=A9trang=C3=A8res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/install/install.php | 4 ++-- core/module/install/view/postinstall/postinstall.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/module/install/install.php b/core/module/install/install.php index e9656817..7193e0c0 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -38,7 +38,6 @@ class install extends common // Fichiers des Interface public static $i18nFiles = []; - /** * Pré-installation - choix de la langue */ @@ -165,7 +164,8 @@ class install extends common }*/ // Installation du site de test - if ($this->getInput('installDefaultData', helper::FILTER_BOOLEAN) === FALSE) { + if ($this->getInput('installDefaultData', helper::FILTER_BOOLEAN) === false + && $lang === 'fr_FR' ) { $this->initData('page', self::$i18nContent, true); $this->initData('module', self::$i18nContent, true); $this->setData(['module', 'blog', 'posts', 'mon-premier-article', 'userId', $userId]); diff --git a/core/module/install/view/postinstall/postinstall.php b/core/module/install/view/postinstall/postinstall.php index 68408a81..6de89690 100644 --- a/core/module/install/view/postinstall/postinstall.php +++ b/core/module/install/view/postinstall/postinstall.php @@ -57,6 +57,7 @@
+ getUrl(2) === 'fr_FR'): ?>
+