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

This commit is contained in:
Andrew Dolgov 2013-05-17 22:57:18 +04:00
parent f7d64d03fc
commit 2f6b75d574
1 changed files with 6 additions and 7 deletions

View File

@ -19,18 +19,17 @@ class FeedItem_RSS extends FeedItem_Common {
}
function get_link() {
$link = $this->xpath->query("atom:link", $this->elem)->item(0);
if ($link) {
return $link->getAttribute("href");
}
$link = $this->elem->getElementsByTagName("link")->item(0);
if ($link) {
return $link->nodeValue;
}
$link = $this->xpath->query("atom:link", $this->elem)->item(0);
if ($link) {
return $link->nodeValue;
}
}
function get_title() {