diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-05-15 12:06:52 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2012-05-15 12:06:52 +0400 |
| commit | 882311d9ad0092127ccaecd700cb659cebb89aa8 (patch) | |
| tree | 68bd61cc137e7ff0ee4a94b268082f7f1ff4a517 /include/rssfuncs.php | |
| parent | 941e48a402e084a3fa51224b150dc186250650e1 (diff) | |
get favicon from icon atom feeds & search for icons not only in html head (closes #457)
Diffstat (limited to 'include/rssfuncs.php')
| -rw-r--r-- | include/rssfuncs.php | 9 |
1 files changed, 8 insertions, 1 deletions
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]") { |