From 3370c9c9d6c005af7f4ab327d0d9a5af3918834f Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 16 Feb 2023 21:37:23 +0100 Subject: [PATCH] DateVersion 12300 --- core/core.php | 2 +- core/include/update.inc.php | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/core/core.php b/core/core.php index cddf907a..3dd79409 100644 --- a/core/core.php +++ b/core/core.php @@ -49,7 +49,7 @@ class common // Numéro de version et branche pour l'auto-update const ZWII_VERSION = '12.3.00'; - const ZWII_DATAVERSION = 12204; + const ZWII_DATAVERSION = 12300; // 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 66339378..053d76e6 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -927,13 +927,12 @@ if ($this->getData(['core', 'dataVersion']) < 12000) { $this->setData(['core', 'dataVersion', 12000]); } -// Version 12.2.04 -if ($this->getData(['core', 'dataVersion']) < 12204) { +// Version 12.3.00 +if ($this->getData(['core', 'dataVersion']) < 12300) { // Valeur par défaut du délai de recherche de mise à jour en ligne $this->setData(['config', 'autoUpdateDelay', 86400]); // Changement de nom des fichiers de langue greque if (file_exists('core\module\install\ressource\i18n\gr_GR.json')) { - copy('core\module\install\ressource\i18n\gr_GR.json', ' core\module\install\ressource\i18n\el_GR.json'); unlink('core\module\install\ressource\i18n\gr_GR.json'); } if (file_exists(self::I18N_DIR . 'gr_GR.json')) { @@ -945,11 +944,10 @@ if ($this->getData(['core', 'dataVersion']) < 12204) { // Idem pour les modules $moduleIds = ['blog', 'news', 'gallery', 'search', 'redirection', 'form']; foreach($moduleIds as $key => $value) { - if (file_exists('module/' . $value . '/i18n/gr_GR.json' )) - { - rename ('module/' . $value . '/i18n/gr_GR.json', 'module/' . $value . '/i18n/el_GR.json'); + if (file_exists('module/' . $value . '/i18n/gr_GR.json' )) { + unlink ('module/' . $value . '/i18n/gr_GR.json'); } } // Mise à jour - $this->setData(['core', 'dataVersion', 12204]); + $this->setData(['core', 'dataVersion', 12300]); } \ No newline at end of file