From c594eca0de78f46bd5f18194c058d94487d1a9e2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 16 May 2013 01:08:04 +0400 Subject: implement additional counter mode for virtual feeds when there's 0 unread articles --- include/functions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 149809a35..5296f9e61 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1459,8 +1459,14 @@ $count = getFeedUnread($i); + if ($i == 0 || $i == -1 || $i == -2) + $auxctr = getFeedArticles($i, false); + else + $auxctr = 0; + $cv = array("id" => $i, - "counter" => (int) $count); + "counter" => (int) $count, + "auxcounter" => $auxctr); // if (get_pref('EXTENDED_FEEDLIST')) // $cv["xmsg"] = getFeedArticles($i)." ".__("total"); -- cgit v1.2.3