summaryrefslogtreecommitdiff
path: root/classes/feeditem/atom.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-26 10:21:54 +0400
committerAndrew Dolgov <[email protected]>2013-05-26 10:21:54 +0400
commitdf2655e01566f3c59337a020b1d70054ff585d75 (patch)
tree892be4c30d1562aa86b965b0513395ba9a5365a9 /classes/feeditem/atom.php
parent393c1ddc6d1e3fee5b173be3b2a88fcce5bfc1a8 (diff)
better support for atom:link elements in rss feeds, support rel=standout (fuck you google and your nonstandard shit)
Diffstat (limited to 'classes/feeditem/atom.php')
-rw-r--r--classes/feeditem/atom.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php
index 73a586d5b..489c5b148 100644
--- a/classes/feeditem/atom.php
+++ b/classes/feeditem/atom.php
@@ -22,8 +22,11 @@ class FeedItem_Atom extends FeedItem_Common {
$links = $this->elem->getElementsByTagName("link");
foreach ($links as $link) {
- if ($link && $link->hasAttribute("href") && (!$link->hasAttribute("rel")
- || $link->getAttribute("rel") == "alternate")) {
+ if ($link && $link->hasAttribute("href") &&
+ (!$link->hasAttribute("rel")
+ || $link->getAttribute("rel") == "alternate"
+ || $link->getAttribute("rel") == "standout")) {
+
return $link->getAttribute("href");
}
}