From fb3ca86d81f49ffa9c7ff0e8ae94bf2787010bb9 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 15 May 2021 14:17:14 +0200 Subject: [PATCH] update news versionData --- module/news/news.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/module/news/news.php b/module/news/news.php index ad9d3ffa..d8c0d94d 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -485,6 +485,15 @@ class news extends common { $this->setData(['module', $this->getUrl(0), 'theme', init::$defaultTheme]); $this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . 'pages/' . $this->getUrl(0) . '/theme.css' ]); } + + $versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]); + + // Mise à jour 3.2 + if (version_compare($versionData, '3.1', '<') ) { + $this->setData(['module',$this->getUrl(0),'theme', 'itemsBlur', '0%' ]); + // Mettre à jour la verison + $this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.2' ]); + } } /**