]> git.wh0rd.org Git - tt-rss.git/commitdiff
printFeedEntry now expects $link
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 16 Nov 2005 17:47:58 +0000 (18:47 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 16 Nov 2005 17:47:58 +0000 (18:47 +0100)
backend.php
functions.php

index 06563e689308289a3147cefe23f4ce0281d98a96..e70fc9d7eda64373bbab8ab2bc02963450c0fc52 100644 (file)
                        if ($num_starred > 0) $class .= "Unread";
 
                        printFeedEntry(-1, $class, "Starred articles", $num_starred, 
-                               "images/mark_set.png");
+                               "images/mark_set.png", $link);
 
                        if (get_pref($link, 'ENABLE_LABELS')) {
        
                                        error_reporting (E_ERROR | E_WARNING | E_PARSE);
        
                                        printFeedEntry(-$line["id"]-11, 
-                                               $class, $line["description"], $count, "images/label.png");
+                                               $class, $line["description"], $count, "images/label.png", $link);
                
                                }
                        }
        
                                $total_unread += $unread;
        
-                               printFeedEntry($feed_id, $class, $feed, $unread, "icons/$feed_id.ico");
+                               printFeedEntry($feed_id, $class, $feed, $unread, "icons/$feed_id.ico", $link);
        
                                ++$lnum;
                        }
                                        $class .= "Unread";
                                }
        
-                               printFeedEntry($tag, $class, $tag, $unread, "images/tag.png");
+                               printFeedEntry($tag, $class, $tag, $unread, "images/tag.png", $link);
        
                        } 
 
index b9392d8184a0b725c19effa54aacec5c8b1325b7..d9d9c37fd52c7b507b246d888720b096a3d7f121 100644 (file)
                return false;
        }
 
-       function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file) {
+       function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link) {
 
                if (file_exists($icon_file) && filesize($icon_file) > 0) {
                                $feed_icon = "<img src=\"$icon_file\">";