From 3f48ab9e1e6959acfd0f76eb9d67e0d3d01bff49 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 5 Jun 2021 17:53:07 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20de=20l'url=20de=20la=20f?= =?UTF-8?q?euille=20de=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 2 ++ module/news/news.php | 2 ++ 2 files changed, 4 insertions(+) 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' ]); }