From cf4d339c28240f0390524335c7d8effdc3a63068 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 7 Dec 2006 09:06:38 +0100 Subject: support omode in rpc getAllCounters --- functions.php | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 7b5da022c..84b863e70 100644 --- a/functions.php +++ b/functions.php @@ -1480,13 +1480,26 @@ } } - function getAllCounters($link) { - getLabelCounters($link); + function getAllCounters($link, $omode = "tflc") { +/* getLabelCounters($link); getFeedCounters($link); getTagCounters($link); getGlobalCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); + } */ + + if (!$omode) $omode = "tflc"; + + getGlobalCounters($link); + + if (strchr($omode, "l")) getLabelCounters($link); + if (strchr($omode, "f")) getFeedCounters($link); + if (strchr($omode, "t")) getTagCounters($link); + if (strchr($omode, "c")) { + if (get_pref($link, 'ENABLE_FEED_CATS')) { + getCategoryCounters($link); + } } } @@ -2727,27 +2740,27 @@ $owner_uid = $_SESSION["uid"]; - if (!$tags) { + /* virtual feeds */ - /* virtual feeds */ + if (get_pref($link, 'ENABLE_FEED_CATS')) { + print "
  • Special
  • "; + print "
  • \n"; - } + if (!$tags) { if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { -- cgit v1.2.3-54-g00ecf