diff options
author | Andrew Dolgov <[email protected]> | 2013-05-16 01:08:04 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-16 01:08:04 +0400 |
commit | c594eca0de78f46bd5f18194c058d94487d1a9e2 (patch) | |
tree | 1a1394b9ceea84dcdc2e6c7b027453d6fda91907 /include/functions.php | |
parent | 96ce71f35f2dd5bd08e140ffbe47e8fe40ec0c01 (diff) |
implement additional counter mode for virtual feeds when there's 0 unread articles
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 8 |
1 files changed, 7 insertions, 1 deletions
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"); |