From 384ac6052f16bc23774335f0d57a017cf6e0fbce Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 13 Jan 2021 10:30:30 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20s=C3=A9lection=20de=20langue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/core.php b/core/core.php index 8416750f..6db4ade4 100755 --- a/core/core.php +++ b/core/core.php @@ -154,7 +154,6 @@ class common { ]; // Langue courante public static $i18nSite; - public static $i18nCurrent; public static $timezone; private $url = ''; // Données de site @@ -208,7 +207,7 @@ class common { // Constructeur JsonDB $this->dataFiles[$keys] = new \Prowebcraft\JsonDb([ 'name' => $keys . '.json', - 'dir' => $this->dataPath ($keys,self::$i18nCurrent), + 'dir' => $this->dataPath ($keys,self::$i18nSite), 'backup' => file_exists('site/data/.backup') ]);; } @@ -229,7 +228,7 @@ class common { // Installation fraîche, initialisation des modules manquants // La langue d'installation par défaut est fr foreach ($this->dataFiles as $stageId => $item) { - $folder = $this->dataPath ($stageId, self::$i18nCurrent); + $folder = $this->dataPath ($stageId, self::$i18nSite); if (file_exists($folder . $stageId .'.json') === false) { $this->initData($stageId,self::$i18nSite); common::$coreNotices [] = $stageId ;