1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 08:51:28 +00:00

unify backend methods updateAllFeeds and getAllCounters

This commit is contained in:
Andrew Dolgov
2010-11-10 19:18:13 +03:00
parent 3d28f9cd2d
commit 773adf8b42
2 changed files with 4 additions and 17 deletions

View File

@@ -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);