summaryrefslogtreecommitdiffstats
path: root/lib/utils.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.php')
-rw-r--r--lib/utils.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/utils.php b/lib/utils.php
index 959a102ee..a9f1488b1 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -41,6 +41,14 @@ class OC_News_Utils {
}
$feed = new OC_News_Feed($url, $title, $items);
+
+ $favicon = $spfeed->get_image_url();
+ if ($favicon == null) {
+ $favicon = $url . "favicon.ico";
+ //check if this file exists
+ }
+ $feed->setFavicon($favicon);
+
return $feed;
}
} \ No newline at end of file