1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 08:45:57 +00:00

fix get_links() for RSS

This commit is contained in:
Andrew Dolgov
2013-05-01 19:09:07 +04:00
parent b9eee80e08
commit 3c8060aca0

View File

@@ -132,9 +132,11 @@ class FeedParser {
break; break;
case $this::FEED_RSS: case $this::FEED_RSS:
$links = $this->xpath->query("//channel/link"); $links = $this->xpath->query("//channel/link");
foreach ($links as $link) {
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) { if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
array_push($rv, $link->getAttribute('href')); array_push($rv, $link->getAttribute('href'));
} }
}
break; break;
} }