1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 21:11:28 +00:00

move virt feeds counter display to getVirtCounters()

This commit is contained in:
Andrew Dolgov
2009-12-30 10:07:00 +03:00
parent 2aa709f7ef
commit 0a6e5382cf
3 changed files with 24 additions and 36 deletions

View File

@@ -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")) {