mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:55:56 +00:00
fix get_links() for RSS
This commit is contained in:
@@ -132,8 +132,10 @@ class FeedParser {
|
|||||||
break;
|
break;
|
||||||
case $this::FEED_RSS:
|
case $this::FEED_RSS:
|
||||||
$links = $this->xpath->query("//channel/link");
|
$links = $this->xpath->query("//channel/link");
|
||||||
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
|
foreach ($links as $link) {
|
||||||
array_push($rv, $link->getAttribute('href'));
|
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
|
||||||
|
array_push($rv, $link->getAttribute('href'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user