diff options
author | Andrew Dolgov <[email protected]> | 2007-08-24 05:04:55 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-24 05:04:55 +0100 |
commit | 1341ea0dbedf749ff87e7d9b4b8a06d42d4ca4e0 (patch) | |
tree | bd36711353f0aa4ad6b44a7c1a136bfc77576fc2 /modules | |
parent | dcf7fd08d1826f0289c99bea4d32a566f1224505 (diff) |
add some async counters handling
Diffstat (limited to 'modules')
-rw-r--r-- | modules/backend-rpc.php | 22 |
1 files changed, 12 insertions, 10 deletions
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 "<counters>"; + $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); |