Skip to content
Snippets Groups Projects
Commit 2f6b75d5 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

fix atom:link not supported in rss feeds (fucking fuck) (2)

parent f7d64d03
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment