recharger le thème

This commit is contained in:
Fred Tempez 2020-11-04 09:17:29 +01:00
parent f2e6af6dea
commit 3a5702e36b
1 changed files with 4 additions and 0 deletions

View File

@ -1442,6 +1442,10 @@ class common {
if ($this->getData(['core', 'dataVersion']) < 10304) {
// Couleur des sous menus
$this->setData(['theme', 'menu', 'backgroundColorSub', $this->getData(['theme', 'menu', 'backgroundColor']) ]);
// Nettoyage du fichier de thème pour forcer une régénération
if (file_exists(self::DATA_DIR . '/theme.css')) { // On ne sait jamais
unlink (self::DATA_DIR . '/theme.css');
}
$this->setData(['core', 'dataVersion', 10304]);
}
}