1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 23:35:56 +00:00

get favicon from icon atom feeds & search for icons not only in html head (closes #457)

This commit is contained in:
Andrew Dolgov
2012-05-15 12:06:52 +04:00
parent 941e48a402
commit 882311d9ad
2 changed files with 72 additions and 55 deletions

View File

@@ -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]") {