diff options
author | Andrew Dolgov <[email protected]> | 2013-05-02 10:40:59 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-02 10:40:59 +0400 |
commit | 72c29b65d4494f6df83c558e3bd281ff440e20af (patch) | |
tree | d43e421b121c971d81840b19fd499183ba8a64d0 | |
parent | 602fe53496fcc5c95983bebf0d789d01cdf3e5aa (diff) |
atom: fix rel=alternate links
-rw-r--r-- | classes/feeditem/atom.php | 3 |
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"); } } |