removeDir addon when no folder

This commit is contained in:
Fred Tempez 2022-02-12 17:12:12 +01:00
parent 152c4fc712
commit 3cc976b60e

View File

@ -791,3 +791,15 @@ if ($this->getData(['core', 'dataVersion']) < 11300) {
// Mise à jour
$this->setData(['core', 'dataVersion', 11300]);
}
// Version 12.0.00
if ($this->getData(['core', 'dataVersion']) < 12000) {
// Effacer le dossier
if (is_dir('core/module/addon')) {
$this->removeDir('core/module/addon');
}
// Mise à jour
$this->setData(['core', 'dataVersion', 12000]);
}