diff --git a/inc/3rdparty/libraries/feedwriter/FeedItem.php b/inc/3rdparty/libraries/feedwriter/FeedItem.php index 6761eb0ed..9373deeb3 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); diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 5862befba..d45d0c406 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -870,10 +870,10 @@ class Poche } // Check the token - $feed = new FeedWriter(ATOM); + $feed = new FeedWriter(RSS2); $feed->setTitle('poche - ' . $type . ' feed'); $feed->setLink(Tools::getPocheUrl()); - $feed->setChannelElement('updated', date(DATE_ATOM , time())); + $feed->setChannelElement('updated', date(DATE_RSS , time())); $feed->setChannelElement('author', 'poche'); $entries = $this->store->getEntriesByView($type, $user_id);