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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user