|
|
@ -772,10 +772,12 @@
|
|
|
|
if ($use_simplepie) {
|
|
|
|
if ($use_simplepie) {
|
|
|
|
$links = $rss->get_links('hub');
|
|
|
|
$links = $rss->get_links('hub');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($links && is_array($links)) {
|
|
|
|
foreach ($links as $l) {
|
|
|
|
foreach ($links as $l) {
|
|
|
|
$feed_hub_url = $l;
|
|
|
|
$feed_hub_url = $l;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$atom = $rss->channel['atom'];
|
|
|
|
$atom = $rss->channel['atom'];
|
|
|
@ -789,6 +791,7 @@
|
|
|
|
for ($i = 2; $i <= $atom['link#']; $i++) {
|
|
|
|
for ($i = 2; $i <= $atom['link#']; $i++) {
|
|
|
|
if ($atom["link#$i@rel"] == 'hub') {
|
|
|
|
if ($atom["link#$i@rel"] == 'hub') {
|
|
|
|
$feed_hub_url = $atom["link#$i@href"];
|
|
|
|
$feed_hub_url = $atom["link#$i@href"];
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|