mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
Update atom.php
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
class FeedItem_Atom extends FeedItem_Common {
|
class FeedItem_Atom extends FeedItem_Common {
|
||||||
|
|
||||||
|
private $baseUrl;
|
||||||
|
|
||||||
|
function __construct($elem, $doc, $xpath, $baseUrl) {
|
||||||
|
parent::__construct($elem, $doc, $xpath);
|
||||||
|
$this->baseUrl= $baseUrl;
|
||||||
|
}
|
||||||
|
|
||||||
function get_id() {
|
function get_id() {
|
||||||
$id = $this->elem->getElementsByTagName("id")->item(0);
|
$id = $this->elem->getElementsByTagName("id")->item(0);
|
||||||
|
|
||||||
@@ -39,7 +47,7 @@ class FeedItem_Atom extends FeedItem_Common {
|
|||||||
|| $link->getAttribute("rel") == "alternate"
|
|| $link->getAttribute("rel") == "alternate"
|
||||||
|| $link->getAttribute("rel") == "standout")) {
|
|| $link->getAttribute("rel") == "standout")) {
|
||||||
|
|
||||||
return $link->getAttribute("href");
|
return $this->baseUrl.$link->getAttribute("href");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user