]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] RSS feeds were buggy when I update full-text RSS
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 6 Dec 2013 09:14:59 +0000 (10:14 +0100)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 6 Dec 2013 09:14:59 +0000 (10:14 +0100)
inc/3rdparty/libraries/feedwriter/FeedItem.php
inc/poche/Poche.class.php

index 6761eb0ed1f9e96a14d7d08d9d03ceb928cbb966..9373deeb3e914f0279c6fd851ef7aeddb6ec82c4 100644 (file)
        */\r
        public function setDescription($description) \r
        {\r
-               $tag = ($this->version == ATOM)? 'summary' : 'description'; \r
+               $tag = 'description'; \r
                $this->setElement($tag, $description);\r
        }\r
        \r
                {\r
                        $date = strtotime($date);\r
                }\r
-               \r
-               if($this->version == ATOM)\r
-               {\r
-                       $tag    = 'updated';\r
-                       $value  = date(DATE_ATOM, $date);\r
-               }        \r
-               elseif($this->version == RSS2) \r
+      \r
+               if($this->version == RSS2) \r
                {\r
                        $tag    = 'pubDate';\r
                        $value  = date(DATE_RSS, $date);\r
index 5862befbaad828de1e73022131f375ec182599fe..d45d0c406b60ba6da378de12595a76e61637f8d7 100644 (file)
@@ -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);