From: Andrew Dolgov Date: Thu, 2 May 2013 06:40:59 +0000 (+0400) Subject: atom: fix rel=alternate links X-Git-Tag: 1.7.9~25^2~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=72c29b65d4494f6df83c558e3bd281ff440e20af;p=tt-rss.git atom: fix rel=alternate links --- diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php index df1c31d9..b981dc31 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"); } }