function fetch_favicon($feed_id, $site_url, $icon_link) { if (Config\get('favicons') == 1 && !has_favicon($feed_id)) { $favicon = new Favicon(); $link = $favicon->find($site_url, $icon_link); $icon = $favicon->getContent(); $type = $favicon->getType(); if ($icon !== '') { store_favicon($feed_id, $link, $type, $icon); } } }