Bug effacer du dossier
This commit is contained in:
parent
f2daa8fefd
commit
a1d7931c41
@ -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' ]);
|
||||
}
|
||||
|
@ -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' ]);
|
||||
}
|
||||
|
@ -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' ]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user