From 4d96900c8ce1bbeb446cea586144fa3468abc016 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 18 Feb 2023 08:44:01 +0100 Subject: [PATCH] update error --- core/include/update.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 0b3f3be8..cd5fd428 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -943,14 +943,16 @@ if ($this->getData(['core', 'dataVersion']) < 12300) { $this->deleteData(['languages', 'gr_GR']); // 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' )) { - unlink ('module/' . $value . '/i18n/gr_GR.json'); + foreach ($moduleIds as $key => $value) { + if (file_exists('module/' . $value . '/i18n/gr_GR.json')) { + unlink('module/' . $value . '/i18n/gr_GR.json'); } } // Nettoyage de flatPickr - $this->removeDir('core/vendor/flatpickr'); + if (is_dir('core/vendor/flatpickr')) { + $this->removeDir('core/vendor/flatpickr'); + } // Mise à jour $this->setData(['core', 'dataVersion', 12300]);