Revert "get_feeds_from_html: add rel='alternate feed'"

This reverts commit 526e1d80be.
This commit is contained in:
Andrew Dolgov 2014-03-05 18:49:52 +04:00
parent 526e1d80be
commit 16c4803251
1 changed files with 1 additions and 1 deletions

View File

@ -1779,7 +1779,7 @@
$doc->loadHTML($content);
$xpath = new DOMXPath($doc);
$entries = $xpath->query('/html/head/link[@rel="alternate" and '.
'(contains(@type,"rss") or contains(@type,"atom"))]|/html/head/link[@rel="feed" or @rel="alternate feed"]');
'(contains(@type,"rss") or contains(@type,"atom"))]|/html/head/link[@rel="feed"]');
$feedUrls = array();
foreach ($entries as $entry) {
if ($entry->hasAttribute('href')) {