From: Andrew Dolgov Date: Fri, 24 May 2013 10:40:47 +0000 (+0400) Subject: parser: fix get_links() for RSS X-Git-Tag: 1.8~66 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=f17c3ee29a46e8cca48312c8582dd01b0410bc16 parser: fix get_links() for RSS --- diff --git a/classes/feedparser.php b/classes/feedparser.php index a4fb348a..d93c575b 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -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'));