diff options
author | Andrew Dolgov <[email protected]> | 2009-12-30 10:07:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-30 10:07:00 +0300 |
commit | 0a6e5382cfd59f2cbfeefd0bfd7d9af1408236df (patch) | |
tree | 5a59932b24b96ebd11941a960adeab9b5ff9662a /modules/backend-rpc.php | |
parent | 2aa709f7ef51c0922e9729f1b4ab70413b5a4e60 (diff) |
move virt feeds counter display to getVirtCounters()
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r-- | modules/backend-rpc.php | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index c9c367165..8b1252127 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -22,30 +22,6 @@ return; } - if ($subop == "getLabelCounters") { - $aid = $_REQUEST["aid"]; - print "<rpc-reply>"; - print "<counters>"; - getLabelCounters($link); - if ($aid) { - getFeedCounter($link, $aid); - } - print "</counters>"; - print "</rpc-reply>"; - - return; - } - - if ($subop == "getFeedCounters") { - print "<rpc-reply>"; - print "<counters>"; - getFeedCounters($link); - print "</counters>"; - print "</rpc-reply>"; - - return; - } - if ($subop == "getAllCounters") { print "<rpc-reply>"; print "<counters>"; @@ -77,6 +53,7 @@ print "<rpc-reply><counters>"; getGlobalCounters($link); + getVirtCounters($link); getLabelCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); @@ -94,6 +71,7 @@ print "<rpc-reply><counters>"; getGlobalCounters($link); + getVirtCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); } @@ -111,6 +89,7 @@ print "<rpc-reply><counters>"; getGlobalCounters($link); + getVirtCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); } @@ -128,6 +107,7 @@ print "<rpc-reply><counters>"; getGlobalCounters($link); + getVirtCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); } @@ -164,6 +144,7 @@ print "<counters>"; getGlobalCounters($link); + getVirtCounters($link); getLabelCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); @@ -218,6 +199,8 @@ if (!$omode) $omode = "tflc"; + getVirtCounters($link); + if (strchr($omode, "l")) getLabelCounters($link); if (strchr($omode, "c")) { |