summaryrefslogtreecommitdiff
path: root/classes/feedparser.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-24 14:40:47 +0400
committerAndrew Dolgov <[email protected]>2013-05-24 14:40:47 +0400
commitf17c3ee29a46e8cca48312c8582dd01b0410bc16 (patch)
treec10fa55142cd154392a436de4579bd225c9cc2be /classes/feedparser.php
parent5a6d7e7ace4c80ceae06815e6a328039f98e674b (diff)
parser: fix get_links() for RSS
Diffstat (limited to 'classes/feedparser.php')
-rw-r--r--classes/feedparser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php
index a4fb348a2..d93c575b2 100644
--- a/classes/feedparser.php
+++ b/classes/feedparser.php
@@ -105,7 +105,6 @@ class FeedParser {
break;
case $this::FEED_RSS:
-
$title = $xpath->query("//channel/title")->item(0);
if ($title) {
@@ -200,7 +199,8 @@ class FeedParser {
}
break;
case $this::FEED_RSS:
- $links = $this->xpath->query("//channel/link");
+ $links = $this->xpath->query("//atom:link");
+
foreach ($links as $link) {
if (!$rel || $link->hasAttribute('rel') && $link->getAttribute('rel') == $rel) {
array_push($rv, $link->getAttribute('href'));