From 882311d9ad0092127ccaecd700cb659cebb89aa8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 May 2012 12:06:52 +0400 Subject: get favicon from icon atom feeds & search for icons not only in html head (closes #457) --- include/rssfuncs.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 48a246d88..cb985197c 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -441,7 +441,14 @@ _debug("update_rss_feed: checking favicon..."); } - check_feed_favicon($site_url, $feed, $link); + if (!file_exists(ICONS_DIR . "/$feed.ico")) { + if ($use_simplepie) { + $atom_icon = $rss->get_favicon(); + } else { + $atom_icon = $rss->channel["icon"]; + } + check_feed_favicon($site_url, $feed, $link, $atom_icon); + } if (!$registered_title || $registered_title == "[Unknown]") { -- cgit v1.2.3