瀏覽代碼

[AtomFormat] Use default feed URI if non defined

logmanoriginal 7 年之前
父節點
當前提交
368fc66fbf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      formats/AtomFormat.php

+ 1 - 1
formats/AtomFormat.php

@@ -17,7 +17,7 @@ class AtomFormat extends FormatAbstract{
 
         $extraInfos = $this->getExtraInfos();
         $title = $this->xml_encode($extraInfos['name']);
-        $uri = $extraInfos['uri'];
+        $uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/sebsauvage/rss-bridge';
         $icon = $this->xml_encode('http://icons.better-idea.org/icon?url='. $uri .'&size=64');
         $uri = $this->xml_encode($uri);