[Bridge] Fix ATOM feed uri detection
This commit is contained in:
parent
bf20a2f687
commit
8fa0b9660f
1 changed files with 2 additions and 2 deletions
|
@ -664,7 +664,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract {
|
|||
protected function load_ATOM_feed_data($content){
|
||||
$this->name = $content->title;
|
||||
|
||||
// Find most best link (only one, or first of 'alternate')
|
||||
// Find best link (only one, or first of 'alternate')
|
||||
if(!isset($content->link)){
|
||||
$this->uri = '';
|
||||
} elseif (count($content->link) === 1){
|
||||
|
@ -673,7 +673,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract {
|
|||
$this->uri = '';
|
||||
foreach($content->link as $link){
|
||||
if(strtolower($link['rel']) === 'alternate'){
|
||||
$this->uri = $link['rel'];
|
||||
$this->uri = $link['href'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue