bug Effacer feuille de style

This commit is contained in:
Fred Tempez 2021-07-22 23:30:01 +02:00
parent fa3a4c0fe8
commit 73cfc61823

View File

@ -507,7 +507,7 @@ class news extends common {
// Mise à jour 3.4
if (version_compare($versionData, '3.4', '<') ) {
$this->deleteData(['module',$this->getUrl(0),'theme']);
if (!is_dir(self::DATADIRECTORY . $this->getUrl(0) )) {
if (is_dir(self::DATADIRECTORY . $this->getUrl(0) )) {
$this->removeDir(self::DATADIRECTORY . $this->getUrl(0));
}
// Mettre à jour la version