From 6ad5d62d1fb3bc44a58d33c181f58b315d59a170 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 23 May 2022 20:42:34 +0200 Subject: [PATCH] =?UTF-8?q?support=20image=20dans=20le=20r=C3=A9sum=C3=A9?= =?UTF-8?q?=20des=20articles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/news/news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/news/news.php b/module/news/news.php index 7545ba0b..6158e16e 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -450,7 +450,7 @@ class news extends common { $content = substr($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'content']), 0, $this->getData(['module', $this->getUrl(0), 'config', 'height'])); // Ne pas couper un mot $lastSpace = strrpos($content, ' ', -1 ); - self::$news[$newsIds[$i]]['content'] = substr(strip_tags($content,'

'), 0, $lastSpace) ; + self::$news[$newsIds[$i]]['content'] = substr(strip_tags($content,'

'), 0, $lastSpace) ; } // Mise en forme de la signature self::$news[$newsIds[$i]]['userId'] = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'userId']));