1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-29 17:17:11 +00:00

pass $link into check_feed_favicon()

This commit is contained in:
Andrew Dolgov
2005-11-17 09:30:54 +01:00
parent ff8d690feb
commit 9e99787465

View File

@@ -66,7 +66,7 @@
}
function check_feed_favicon($feed_url, $feed) {
function check_feed_favicon($feed_url, $feed, $link) {
$feed_url = str_replace("http://", "", $feed_url);
$feed_url = preg_replace("/\/.*$/", "", $feed_url);
@@ -120,7 +120,7 @@
if ($rss) {
if (get_pref($link, 'ENABLE_FEED_ICONS')) {
check_feed_favicon($feed_url, $feed);
check_feed_favicon($feed_url, $feed, $link);
}
$result = db_query($link, "SELECT title,icon_url FROM ttrss_feeds WHERE id = '$feed'");