From dbd9d2bf348039994fb31fff0871b4c7679bc808 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 29 Mar 2023 10:19:56 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9place=20le=20nettoyage=20des=20langues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/include/update.inc.php | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/core/core.php b/core/core.php index 9ce70dd2..dc235e33 100644 --- a/core/core.php +++ b/core/core.php @@ -55,7 +55,7 @@ class common // Numéro de version et branche pour l'auto-update const ZWII_VERSION = '12.4.00'; - const ZWII_DATAVERSION = 12301; + const ZWII_DATAVERSION = 12400; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 7d469f87..02c5cc8c 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -943,6 +943,16 @@ if ($this->getData(['core', 'dataVersion']) < 12301) { $this->setData(['config', 'smtp', 'from', 'no-reply@' . str_replace('www.', '', $_SERVER['HTTP_HOST'])]); + + + // Mise à jour + $this->setData(['core', 'dataVersion', 12301]); +} + +// Version 12.4.00 + +if ($this->getData(['core', 'dataVersion']) < 12400) { + // Nettoyage du dossier de langue d'installation' unlink('core/vendor/tinymce/langs/langs.zip'); if (file_exists('core/module/install/ressource/i18n/de.json')) @@ -953,16 +963,4 @@ if ($this->getData(['core', 'dataVersion']) < 12301) { unlink('core/module/install/ressource/i18n/pt_PT.json'); if (file_exists('core/module/install/ressource/i18n/gr_GR.json')) unlink('core/module/install/ressource/i18n/gr_GR.json'); - - // Mise à jour - $this->setData(['core', 'dataVersion', 12301]); -} - -// Version 12.4.00 -/* -if ($this->getData(['core', 'dataVersion']) < 12400) { - - // Mise à jour - $this->setData(['core', 'dataVersion', 12400]); - -} */ \ No newline at end of file +} \ No newline at end of file