From ae716abf6581973f5ff7bfb80017bbc8155ccb15 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 16:49:27 +0200 Subject: [PATCH] [MrssFormat] Remove unused and create default URI if non defined --- formats/MrssFormat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index 8d95b50..fc00ae2 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -17,8 +17,7 @@ class MrssFormat extends FormatAbstract{ $extraInfos = $this->getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); - $uri = htmlspecialchars($extraInfos['uri']); - $icon = 'http://g.etfv.co/'. $uri .'?icon.jpg'; + $uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/sebsauvage/rss-bridge'; $items = ''; foreach($this->getDatas() as $data){ @@ -58,6 +57,7 @@ EOD; {$title} http{$https}://{$httpHost}{$httpInfo}/ {$title} + {$items}