From 14d8d6749c9f4c3e1198e4280a948ebcdc612c86 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 16 Aug 2019 09:40:46 +0200 Subject: [PATCH] [9.2.05] suppression totale de swiper --- core/core.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index c71feb52..e9bd176e 100644 --- a/core/core.php +++ b/core/core.php @@ -33,7 +33,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '9.2.04'; + const ZWII_VERSION = '9.2.05'; public static $actions = []; public static $coreModuleIds = [ @@ -944,6 +944,23 @@ class common { $this->setData(['core', 'dataVersion', 9200]); $this->SaveData(); } + // Version 9.2.05 + if($this->getData(['core', 'dataVersion']) < 9205) { + // Nettoyage Swiper + if (file_exists('core/vendor/tinymce/templates/swiper.html')) { + unlink ('core/vendor/tinymce/templates/swiper.html'); + } + if (is_dir('core/vendor/swiper')) { + $dir = getcwd(); + chdir('core/vendor/swiper'); + $files = glob('*'); + foreach($files as $file) unlink($file); + chdir($dir); + rmdir ('core/vendor/swiper/'); + } + $this->setData(['core', 'dataVersion', 9205]); + $this->SaveData(); + } } }