From 1341ea0dbedf749ff87e7d9b4b8a06d42d4ca4e0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Aug 2007 05:04:55 +0100 Subject: add some async counters handling --- modules/backend-rpc.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'modules/backend-rpc.php') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 6d3ceedfd..b54bd783a 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -165,20 +165,22 @@ print ""; + $omode = $_GET["omode"]; + + if (!$omode) $omode = "tflc"; + + if (strchr($omode, "l")) getLabelCounters($link); + + if (strchr($omode, "c")) { + if (get_pref($link, 'ENABLE_FEED_CATS')) { + getCategoryCounters($link); + } + } + if ($global_unread_caller != $global_unread) { - $omode = $_GET["omode"]; - - if (!$omode) $omode = "tflc"; - - 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); - } - } } getGlobalCounters($link, $global_unread); -- cgit v1.2.3