From 82967f0e1b395238b3ef3ae32e67b43e0cb95970 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 31 Mar 2020 12:46:02 +0200 Subject: [PATCH] [9.3.00] nettoyer theme.css + gitignore --- .gitignore | 33 +++++++++++++++++++++++++++++++++ core/core.php | 9 +++++++++ 2 files changed, 42 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..7cd6ab3b --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Fichiers temporaires +site/tmp/*.zip +site/tmp/*.gz + +# Sauvegardes +site/backup/* + +# Fichiers de données +site/data/*.json +site/data/*.css +site/data/fr/*.json + + +# Fichiers uploadés +site/file/source/* +site/file/thumb/* + +# Dossiers vides dans GitHub +!.gitkeep +/.git + +# PHPStorm +.idea/ + +# Trucs +core/vendor/tinymce/link_list.json +site/tmp/.htaccess +.vscode/* +site/data/body.inc.html +site/data/head.inc.html +sitemap.xml.gz +sitemap.xml +robots.txt diff --git a/core/core.php b/core/core.php index a26026af..795cdeb1 100644 --- a/core/core.php +++ b/core/core.php @@ -1090,6 +1090,15 @@ class common { $this->setData(['core', 'dataVersion', 9223]); $this->saveData(); } + // Version 9.3.00 + if($this->getData(['core', 'dataVersion']) < 9300) { + // Forcer la régénération du thème + if (file_exists(self::DATA_DIR.'theme.css') === false) { + unlink (self::DATA_DIR.'theme.css'); + } + $this->setData(['core', 'dataVersion', 9300]); + $this->saveData(); + } } }