]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix atom:link not supported in rss feeds (fucking fuck)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 17 May 2013 18:50:38 +0000 (22:50 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 17 May 2013 18:50:38 +0000 (22:50 +0400)
classes/feeditem/rss.php

index 2f363b4f69d343ef98936a830702b0f7c88eca5b..93aa5ea8af0338288ec98da6345023e1ddaee21d 100644 (file)
@@ -24,6 +24,13 @@ class FeedItem_RSS extends FeedItem_Common {
                if ($link) {
                        return $link->nodeValue;
                }
+
+               $link = $this->xpath->query("atom:link", $this->elem)->item(0);
+
+               if ($link) {
+                       return $link->nodeValue;
+               }
+
        }
 
        function get_title() {