diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-21 13:50:52 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-21 13:50:52 -0400 |
commit | 5ab51aa17656548a047ebe8d7aee74ce1f89c020 (patch) | |
tree | b32dadcad73840097fb2a2cb1b477a4015665526 /lib | |
parent | 912374165b89b0e6aae71d6fd0930176da259fbf (diff) |
makes previous commit more logical
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/utils.php b/lib/utils.php index cddfcaaa3..24dd5493e 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -43,11 +43,12 @@ class OC_News_Utils { $feed = new OC_News_Feed($url, $title, $items); $favicon = $spfeed->get_image_url(); + //check if this file exists and the size with getimagesize() + if ($favicon == null) { - // fallback icon - $favicon = OCP\Util::imagePath('news', 'rss.svg'); - //check if this file exists + //handle favicon detection } + $feed->setFavicon($favicon); return $feed; |