mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:55:55 +00:00
fix atom:link not supported in rss feeds (fucking fuck) (2)
This commit is contained in:
@@ -19,18 +19,17 @@ class FeedItem_RSS extends FeedItem_Common {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_link() {
|
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);
|
$link = $this->elem->getElementsByTagName("link")->item(0);
|
||||||
|
|
||||||
if ($link) {
|
if ($link) {
|
||||||
return $link->nodeValue;
|
return $link->nodeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = $this->xpath->query("atom:link", $this->elem)->item(0);
|
|
||||||
|
|
||||||
if ($link) {
|
|
||||||
return $link->nodeValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_title() {
|
function get_title() {
|
||||||
|
|||||||
Reference in New Issue
Block a user