From d86cc8d72e473d4d500978dee0b21daa84b70f35 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 26 May 2021 17:37:08 +0200 Subject: [PATCH] =?UTF-8?q?News=203.3=20=20rss=20sur=20page=20affich=C3=A9?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/news/news.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/news/news.php b/module/news/news.php index d8c0d94d..e3b74254 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -15,7 +15,7 @@ class news extends common { - const VERSION = '3.2'; + const VERSION = '3.3'; const REALNAME = 'Actualités'; const DELETE = true; const UPDATE = '0.0'; @@ -101,8 +101,6 @@ class news extends common { $feeds->addGenerator(); // Corps des articles $newsIdsPublishedOns = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'publishedOn', 'SORT_DESC'); - // Articles de la première page uniquement - $newsIdsPublishedOns = array_slice($newsIdsPublishedOns, 0, $this->getData(['module', $this->getUrl(0), 'config', 'itemsperPage']) ); $newsIdsStates = helper::arrayCollumn($this->getData(['module', $this->getUrl(0), 'posts']), 'state', 'SORT_DESC'); foreach($newsIdsPublishedOns as $newsId => $newsPublishedOn) { if($newsPublishedOn <= time() AND $newsIdsStates[$newsId]) {