fix get_links() for RSS
This commit is contained in:
parent
b9eee80e08
commit
3c8060aca0
|
@ -132,9 +132,11 @@ class FeedParser {
|
|||
break;
|
||||
case $this::FEED_RSS:
|
||||
$links = $this->xpath->query("//channel/link");
|
||||
foreach ($links as $link) {
|
||||
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
|
||||
array_push($rv, $link->getAttribute('href'));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue