summaryrefslogtreecommitdiff
path: root/include/functions2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-03-05 18:49:52 +0400
committerAndrew Dolgov <[email protected]>2014-03-05 18:49:52 +0400
commit16c48032519c3da551a5400f1221b6feaff02f2f (patch)
treed07c8cc2339d9608440e1bd127fb3fedd83cb133 /include/functions2.php
parent526e1d80be3fe843798c4e26964e10e25a48ae7a (diff)
Revert "get_feeds_from_html: add rel='alternate feed'"
This reverts commit 526e1d80be3fe843798c4e26964e10e25a48ae7a.
Diffstat (limited to 'include/functions2.php')
-rw-r--r--include/functions2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 60c3fe59a..4e9796147 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" 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')) {