printFeedEntry now expects $link
This commit is contained in:
parent
4769ddaf72
commit
4668523d7c
|
@ -164,7 +164,7 @@
|
||||||
if ($num_starred > 0) $class .= "Unread";
|
if ($num_starred > 0) $class .= "Unread";
|
||||||
|
|
||||||
printFeedEntry(-1, $class, "Starred articles", $num_starred,
|
printFeedEntry(-1, $class, "Starred articles", $num_starred,
|
||||||
"images/mark_set.png");
|
"images/mark_set.png", $link);
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_LABELS')) {
|
if (get_pref($link, 'ENABLE_LABELS')) {
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
||||||
|
|
||||||
printFeedEntry(-$line["id"]-11,
|
printFeedEntry(-$line["id"]-11,
|
||||||
$class, $line["description"], $count, "images/label.png");
|
$class, $line["description"], $count, "images/label.png", $link);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
|
|
||||||
$total_unread += $unread;
|
$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;
|
++$lnum;
|
||||||
}
|
}
|
||||||
|
@ -267,7 +267,7 @@
|
||||||
$class .= "Unread";
|
$class .= "Unread";
|
||||||
}
|
}
|
||||||
|
|
||||||
printFeedEntry($tag, $class, $tag, $unread, "images/tag.png");
|
printFeedEntry($tag, $class, $tag, $unread, "images/tag.png", $link);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -419,7 +419,7 @@
|
||||||
return false;
|
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) {
|
if (file_exists($icon_file) && filesize($icon_file) > 0) {
|
||||||
$feed_icon = "<img src=\"$icon_file\">";
|
$feed_icon = "<img src=\"$icon_file\">";
|
||||||
|
|
Loading…
Reference in New Issue