summaryrefslogtreecommitdiff
path: root/modules/backend-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-10 19:18:13 +0300
committerAndrew Dolgov <[email protected]>2010-11-10 19:18:13 +0300
commit773adf8b424b0b6e8b871c23a44afff0ed177cc0 (patch)
treeb64d672aa58ef3c3ddfee000699f809d5d97ddd5 /modules/backend-rpc.php
parent3d28f9cd2d33b31ebcb621e3f56840b6c127bc21 (diff)
unify backend methods updateAllFeeds and getAllCounters
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r--modules/backend-rpc.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index f28e72475..e6e263cd1 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -164,19 +164,6 @@
return;
}
- if ($subop == "getAllCounters") {
- print "<rpc-reply>";
- print "<counters><![CDATA[";
-
- print json_encode(getAllCounters($link, $_REQUEST['omode']));
-
- print "]]></counters>";
- print_runtime_info($link);
- print "</rpc-reply>";
-
- return;
- }
-
if ($subop == "mark") {
$mark = $_REQUEST["mark"];
$id = db_escape_string($_REQUEST["id"]);
@@ -296,7 +283,7 @@
return;
}
- if ($subop == "updateAllFeeds") {
+ if ($subop == "updateAllFeeds" || $subop == "getAllCounters") {
$global_unread_caller = sprintf("%d", $_REQUEST["uctr"]);
$global_unread = getGlobalUnread($link);