Bug effacer du dossier

This commit is contained in:
Fred Tempez 2021-06-05 17:43:55 +02:00
parent f2daa8fefd
commit a1d7931c41
3 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ class gallery extends common {
if (version_compare($versionData, '3.1', '<') ) {
// Déplacer les données du dossier Pages
$this->copyDir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0), self::DATADIRECTORY . $this->getUrl(0));
$this->removeDir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0));
$this->removeDir(self::DATADIRECTORY . 'pages/');
// Mettre à jour la version
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.1' ]);
}

View File

@ -496,7 +496,7 @@ class news extends common {
if (version_compare($versionData, '3.3', '<') ) {
// Déplacer les données du dossier Pages
$this->copyDir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0), self::DATADIRECTORY . $this->getUrl(0));
$this->removeDir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0));
$this->removeDir(self::DATADIRECTORY . 'pages/' );
// Mettre à jour la version
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.3' ]);
}

View File

@ -94,7 +94,7 @@ class search extends common {
if (version_compare($versionData, '2.2', '<') ) {
// Déplacer les données du dossier Pages
$this->copyDir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0), self::DATADIRECTORY . $this->getUrl(0));
$this->removeDir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0));
$this->removeDir(self::DATADIRECTORY . 'pages/');
// Mettre à jour la version
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '2.2' ]);
}