From f2daa8fefd428b98ae2be332f0f713bbeca61a9d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 5 Jun 2021 17:43:09 +0200 Subject: [PATCH] Bug versionData manquant --- module/gallery/gallery.php | 3 +++ module/search/search.php | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 43d0c879..81c0e6ea 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -176,6 +176,9 @@ class gallery extends common { // Nouvelle version $this->setData(['module', $this->getUrl(0), 'config', 'versionData', '3.0']); } + + $versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]); + // Mise à jour 3.1 if (version_compare($versionData, '3.1', '<') ) { // Déplacer les données du dossier Pages diff --git a/module/search/search.php b/module/search/search.php index 33bd91f5..a0187c7b 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -87,6 +87,9 @@ class search extends common { $this->setData(['module', $this->getUrl(0), 'config', 'versionData', '2.0']); } + + $versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]); + // Mise à jour 2.2 if (version_compare($versionData, '2.2', '<') ) { // Déplacer les données du dossier Pages @@ -106,7 +109,7 @@ class search extends common { $fileCSS = self::DATADIRECTORY . $this->getUrl(0) . '/theme.css' ; if ($this->getData(['module', $this->getUrl(0)]) === null) { - // Données du module + // Données du module require_once('module/search/ressource/defaultdata.php'); $this->setData(['module', $this->getUrl(0), 'config',init::$defaultConfig ]); // Données de thème