From: Andrew Dolgov Date: Fri, 17 May 2013 18:57:18 +0000 (+0400) Subject: fix atom:link not supported in rss feeds (fucking fuck) (2) X-Git-Tag: 1.8~93 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2f6b75d574aea4cf05bb9aae5e2782f820ae7794;p=tt-rss.git fix atom:link not supported in rss feeds (fucking fuck) (2) --- diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 93aa5ea8..2c29e318 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() {