better support for atom:link elements in rss feeds, support rel=standout (fuck you google and your nonstandard shit)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user