From 7111fdb5327adaeb73a5e6b66e5c578e5159ab92 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 24 Apr 2023 19:45:57 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20le=20bug=20des=20modules=20orphelins?= =?UTF-8?q?=20non=20filtr=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 3 +++ LISEZMOI.md | 2 +- README.md | 2 +- core/core.php | 2 +- core/module/plugin/plugin.php | 6 +++--- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ed9fa752..8121e81a 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Changelog +## Version 12.3.09 +- Corrige le filtrage des modules orphelins. + ## Version 12.3.08 - Amélioration du code liée à la traduction du contenu du CMS. - Implémentation d'un message d'avertissement de suppression d'une langue de site ou de contenu. diff --git a/LISEZMOI.md b/LISEZMOI.md index e32ab8f6..cdade332 100644 --- a/LISEZMOI.md +++ b/LISEZMOI.md @@ -1,4 +1,4 @@ -# ZwiiCMS 12.3.08 +# ZwiiCMS 12.3.09 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/README.md b/README.md index 0f1f33e3..5f712850 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiCMS 12.3.08 +# ZwiiCMS 12.3.09 Zwii is a database-less (flat-file) CMS that allows you to easily create and manage a web site without any programming knowledge. diff --git a/core/core.php b/core/core.php index f69c3bd4..cbac0c65 100644 --- a/core/core.php +++ b/core/core.php @@ -53,7 +53,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version et branche pour l'auto-update - const ZWII_VERSION = '12.3.08'; + const ZWII_VERSION = '12.3.09'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; diff --git a/core/module/plugin/plugin.php b/core/module/plugin/plugin.php index 3ac28d37..dae51edc 100644 --- a/core/module/plugin/plugin.php +++ b/core/module/plugin/plugin.php @@ -424,9 +424,9 @@ class plugin extends common foreach (self::$languages as $key => $value) { // tableau des langues installées if ( - is_dir(self::DATA_DIR . $value - && file_exists(self::DATA_DIR . $value . '/page.json') - && file_exists(self::DATA_DIR . $value . '/module.json')) + is_dir(self::DATA_DIR . $key) + && file_exists(self::DATA_DIR . $key . '/page.json') + && file_exists(self::DATA_DIR . $key . '/module.json') ) { $i18nSites[$key] = $value; }