Skip to content
Snippets Groups Projects
Commit 3c8060ac authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

fix get_links() for RSS

parent b9eee80e
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,10 @@ class FeedParser {
break;
case $this::FEED_RSS:
$links = $this->xpath->query("//channel/link");
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
array_push($rv, $link->getAttribute('href'));
foreach ($links as $link) {
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
array_push($rv, $link->getAttribute('href'));
}
}
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment