diff options
author | Andrew Dolgov <[email protected]> | 2013-05-17 22:57:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-17 22:57:18 +0400 |
commit | 2f6b75d574aea4cf05bb9aae5e2782f820ae7794 (patch) | |
tree | 41b9b04e5885b461dbe99df2c528ae082470bbe1 | |
parent | f7d64d03fc36c4c238e3ea699054a8fdef5597fe (diff) |
fix atom:link not supported in rss feeds (fucking fuck) (2)
-rw-r--r-- | classes/feeditem/rss.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 93aa5ea8a..2c29e318f 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -19,18 +19,17 @@ class FeedItem_RSS extends FeedItem_Common { } function get_link() { - $link = $this->elem->getElementsByTagName("link")->item(0); + $link = $this->xpath->query("atom:link", $this->elem)->item(0); if ($link) { - return $link->nodeValue; + return $link->getAttribute("href"); } - $link = $this->xpath->query("atom:link", $this->elem)->item(0); + $link = $this->elem->getElementsByTagName("link")->item(0); if ($link) { return $link->nodeValue; } - } function get_title() { |