From 9e7c840b186fb4ad2cd3768cec49ee348facf3da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 6 Dec 2013 10:14:59 +0100 Subject: [fix] RSS feeds were buggy when I update full-text RSS --- inc/3rdparty/libraries/feedwriter/FeedItem.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'inc/3rdparty') diff --git a/inc/3rdparty/libraries/feedwriter/FeedItem.php b/inc/3rdparty/libraries/feedwriter/FeedItem.php index 6761eb0e..9373deeb 100644 --- a/inc/3rdparty/libraries/feedwriter/FeedItem.php +++ b/inc/3rdparty/libraries/feedwriter/FeedItem.php @@ -101,7 +101,7 @@ */ public function setDescription($description) { - $tag = ($this->version == ATOM)? 'summary' : 'description'; + $tag = 'description'; $this->setElement($tag, $description); } @@ -129,13 +129,8 @@ { $date = strtotime($date); } - - if($this->version == ATOM) - { - $tag = 'updated'; - $value = date(DATE_ATOM, $date); - } - elseif($this->version == RSS2) + + if($this->version == RSS2) { $tag = 'pubDate'; $value = date(DATE_RSS, $date); -- cgit v1.2.3