[9.3.00] nettoyer theme.css + gitignore

This commit is contained in:
Fred Tempez 2020-03-31 12:46:02 +02:00
parent cc9fa44052
commit 82967f0e1b
2 changed files with 42 additions and 0 deletions

33
.gitignore vendored Normal file
View File

@ -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

View File

@ -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();
}
}
}