1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

Icons: Allow Bridge-specified icons (#788)

This commit is contained in:
Walter Barrett
2018-08-21 11:46:47 -04:00
committed by LogMANOriginal
parent c4cccfe0f3
commit 704a87ad97
8 changed files with 32 additions and 4 deletions

View File

@@ -18,7 +18,11 @@ class AtomFormat extends FormatAbstract{
$uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/RSS-Bridge/rss-bridge';
$uriparts = parse_url($uri);
$icon = $this->xml_encode($uriparts['scheme'] . '://' . $uriparts['host'] .'/favicon.ico');
if(!empty($extraInfos['icon'])) {
$icon = $extraInfos['icon'];
} else {
$icon = $this->xml_encode($uriparts['scheme'] . '://' . $uriparts['host'] .'/favicon.ico');
}
$uri = $this->xml_encode($uri);