]> git.wh0rd.org - tt-rss.git/commitdiff
parser: fix get_links() for RSS
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 24 May 2013 10:40:47 +0000 (14:40 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 24 May 2013 10:40:47 +0000 (14:40 +0400)
classes/feedparser.php

index a4fb348a21b07d643490292554695ca253573c8b..d93c575b21edbae9931d214eff4eacd3f2aeeaa8 100644 (file)
@@ -105,7 +105,6 @@ class FeedParser {
 
                                break;
                        case $this::FEED_RSS:
-
                                $title = $xpath->query("//channel/title")->item(0);
 
                                if ($title) {
@@ -200,7 +199,8 @@ class FeedParser {
                        }
                        break;
                case $this::FEED_RSS:
-                       $links = $this->xpath->query("//channel/link");
+                       $links = $this->xpath->query("//atom:link");
+
                        foreach ($links as $link) {
                                if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
                                        array_push($rv, $link->getAttribute('href'));