diff options
author | Andrew Dolgov <[email protected]> | 2014-03-05 18:34:13 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-03-05 18:34:13 +0400 |
commit | 526e1d80be3fe843798c4e26964e10e25a48ae7a (patch) | |
tree | 8578da91c164297acd95f2dc8ada91f9d05259b1 /include/functions2.php | |
parent | cacc187732e564d643b13a2a0916da0f3365de95 (diff) |
get_feeds_from_html: add rel='alternate feed'
Diffstat (limited to 'include/functions2.php')
-rw-r--r-- | include/functions2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php index 4e9796147..60c3fe59a 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -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"]'); + '(contains(@type,"rss") or contains(@type,"atom"))]|/html/head/link[@rel="feed" or @rel="alternate feed"]'); $feedUrls = array(); foreach ($entries as $entry) { if ($entry->hasAttribute('href')) { |