summaryrefslogtreecommitdiff
path: root/classes/feeditem
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-17 22:50:38 +0400
committerAndrew Dolgov <[email protected]>2013-05-17 22:50:38 +0400
commitf7d64d03fc36c4c238e3ea699054a8fdef5597fe (patch)
tree8f9b1126932092fca80f865d9497bc0e715238d4 /classes/feeditem
parentd1f3fa9791a48de4991e8eae9e9939afd0316be3 (diff)
fix atom:link not supported in rss feeds (fucking fuck)
Diffstat (limited to 'classes/feeditem')
-rw-r--r--classes/feeditem/rss.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php
index 2f363b4f6..93aa5ea8a 100644
--- a/classes/feeditem/rss.php
+++ b/classes/feeditem/rss.php
@@ -24,6 +24,13 @@ class FeedItem_RSS extends FeedItem_Common {
if ($link) {
return $link->nodeValue;
}
+
+ $link = $this->xpath->query("atom:link", $this->elem)->item(0);
+
+ if ($link) {
+ return $link->nodeValue;
+ }
+
}
function get_title() {