]> git.wh0rd.org - tt-rss.git/commitdiff
pass $link into check_feed_favicon()
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 Nov 2005 08:30:54 +0000 (09:30 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 Nov 2005 08:30:54 +0000 (09:30 +0100)
functions.php

index 08a00246f1d826670f79249d935200c06fa148c0..ac1fe4fb6487c9f01289a0ff659dca258420fdbf 100644 (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);
                
                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'");