summaryrefslogtreecommitdiff
path: root/classes/feeditem
diff options
context:
space:
mode:
authorsyrnon <[email protected]>2013-07-03 22:36:33 +0300
committersyrnon <[email protected]>2013-07-03 22:36:33 +0300
commitbfc24f3794fa658b23215a430aafda050460d21b (patch)
tree9b5698f7bc1ec218265cb2fc4b9bff2fa6d2dd1d /classes/feeditem
parentdeeeee76d2a85314ddab909f160574d0c7a5964d (diff)
Update atom.php
Diffstat (limited to 'classes/feeditem')
-rw-r--r--classes/feeditem/atom.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php
index fa6b3a34c..c58d2a5ff 100644
--- a/classes/feeditem/atom.php
+++ b/classes/feeditem/atom.php
@@ -1,5 +1,13 @@
<?php
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() {
$id = $this->elem->getElementsByTagName("id")->item(0);
@@ -39,7 +47,7 @@ class FeedItem_Atom extends FeedItem_Common {
|| $link->getAttribute("rel") == "alternate"
|| $link->getAttribute("rel") == "standout")) {
- return $link->getAttribute("href");
+ return $this->baseUrl.$link->getAttribute("href");
}
}
}