|
|
@ -1779,7 +1779,7 @@
|
|
|
|
$doc->loadHTML($content);
|
|
|
|
$doc->loadHTML($content);
|
|
|
|
$xpath = new DOMXPath($doc);
|
|
|
|
$xpath = new DOMXPath($doc);
|
|
|
|
$entries = $xpath->query('/html/head/link[@rel="alternate" and '.
|
|
|
|
$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();
|
|
|
|
$feedUrls = array();
|
|
|
|
foreach ($entries as $entry) {
|
|
|
|
foreach ($entries as $entry) {
|
|
|
|
if ($entry->hasAttribute('href')) {
|
|
|
|
if ($entry->hasAttribute('href')) {
|
|
|
|