forked from ZwiiCMS-Team/ZwiiCMS
removeDir addon when no folder
This commit is contained in:
parent
152c4fc712
commit
3cc976b60e
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user