From b0e8be710be532fdd6cc663d6ad60a339996ad0e Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 31 Mar 2021 14:36:09 +0200 Subject: [PATCH] =?UTF-8?q?news=20update=20simplifi=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/news/news.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/module/news/news.php b/module/news/news.php index 5dc6273b..85fa93df 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -70,15 +70,11 @@ class news extends common { if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) { $this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']); } - // Version 2.4 + // Version 3.0 if (version_compare($this->getData(['module', $this->getUrl(0), 'versionData']), self::VERSION, '<') ) { - $this->setData(['module', $this->getUrl(0),'config', [ - 'itemsperPage' => 16, - 'itemsperCol'=> 6, - 'feeds' => $this->getData(['module', $this->getUrl(0), 'config','feeds']), - 'feedsLabel' => $this->getData(['module', $this->getUrl(0), 'config','feedsLabel']), - 'version' => '3.0' - ]]); + $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]); + $this->setData(['module', $this->getUrl(0), 'config', 'itemsperCol', 6]); + $this->setData(['module', $this->getUrl(0), 'config', 'version','3.0']); } }