예제 #1
0
파일: feed.php 프로젝트: cs-team/miniflux
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);
        }
    }
}