diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-17 17:37:54 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-17 17:37:54 -0400 |
commit | c378e972a12ba41d252d74e509f88ea7bec2544d (patch) | |
tree | 22e05c91cc6409d803cdce5598fd227d76a8b904 /lib/utils.php | |
parent | 4c8de80f564675f30687d21373ef3674a77a7926 (diff) |
adds favicon; needs css polishing
Diffstat (limited to 'lib/utils.php')
-rw-r--r-- | lib/utils.php | 8 |
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 |