[MrssFormat] Remove unused and create default URI if non defined
This commit is contained in:
parent
368fc66fbf
commit
ae716abf65
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,7 @@ class MrssFormat extends FormatAbstract{
|
||||||
|
|
||||||
$extraInfos = $this->getExtraInfos();
|
$extraInfos = $this->getExtraInfos();
|
||||||
$title = htmlspecialchars($extraInfos['name']);
|
$title = htmlspecialchars($extraInfos['name']);
|
||||||
$uri = htmlspecialchars($extraInfos['uri']);
|
$uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/sebsauvage/rss-bridge';
|
||||||
$icon = 'http://g.etfv.co/'. $uri .'?icon.jpg';
|
|
||||||
|
|
||||||
$items = '';
|
$items = '';
|
||||||
foreach($this->getDatas() as $data){
|
foreach($this->getDatas() as $data){
|
||||||
|
@ -58,6 +57,7 @@ EOD;
|
||||||
<title>{$title}</title>
|
<title>{$title}</title>
|
||||||
<link>http{$https}://{$httpHost}{$httpInfo}/</link>
|
<link>http{$https}://{$httpHost}{$httpInfo}/</link>
|
||||||
<description>{$title}</description>
|
<description>{$title}</description>
|
||||||
|
<atom:link rel="alternate" type="text/html" href="{$uri}" />
|
||||||
<atom:link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />
|
<atom:link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />
|
||||||
{$items}
|
{$items}
|
||||||
</channel>
|
</channel>
|
||||||
|
|
Loading…
Reference in a new issue