diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index eb45dd44..c681e2a1 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -184,6 +184,8 @@ class gallery extends common { // 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/'); + $style = $this->getData(['module', $this->getUrl(0), 'theme', 'style']); + $this->setData(['module', $this->getUrl(0), 'theme', 'style', str_replace('pages/', '', $style)]); // 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 ac319314..ec869d2a 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -497,6 +497,8 @@ class news extends common { // 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/' ); + $style = $this->getData(['module', $this->getUrl(0), 'theme', 'style']); + $this->setData(['module', $this->getUrl(0), 'theme', 'style', str_replace('pages/', '', $style)]); // Mettre à jour la version $this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.3' ]); }