summaryrefslogtreecommitdiff
path: root/classes/feeditem/atom.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-02 10:40:59 +0400
committerAndrew Dolgov <[email protected]>2013-05-02 10:40:59 +0400
commit72c29b65d4494f6df83c558e3bd281ff440e20af (patch)
treed43e421b121c971d81840b19fd499183ba8a64d0 /classes/feeditem/atom.php
parent602fe53496fcc5c95983bebf0d789d01cdf3e5aa (diff)
atom: fix rel=alternate links
Diffstat (limited to 'classes/feeditem/atom.php')
-rw-r--r--classes/feeditem/atom.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php
index df1c31d99..b981dc319 100644
--- a/classes/feeditem/atom.php
+++ b/classes/feeditem/atom.php
@@ -22,7 +22,8 @@ class FeedItem_Atom extends FeedItem_Common {
$links = $this->elem->getElementsByTagName("link");
foreach ($links as $link) {
- if ($link && $link->hasAttribute("href") && !$link->hasAttribute("rel")) {
+ if ($link && $link->hasAttribute("href") && (!$link->hasAttribute("rel")
+ || $link->getAttribute("rel") == "alternate")) {
return $link->getAttribute("href");
}
}