From a1d7931c41361ca1e7094d1b70860871f7525c66 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 5 Jun 2021 17:43:55 +0200 Subject: [PATCH] Bug effacer du dossier --- module/gallery/gallery.php | 2 +- module/news/news.php | 2 +- module/search/search.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 81c0e6ea..eb45dd44 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -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' ]); } diff --git a/module/news/news.php b/module/news/news.php index 482cf2ba..ac319314 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -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' ]); } diff --git a/module/search/search.php b/module/search/search.php index a0187c7b..33c4dca4 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -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' ]); }