1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 02:41:28 +00:00

counters: unify naming

This commit is contained in:
Andrew Dolgov
2021-02-15 16:00:54 +03:00
parent 257efb43c6
commit 5704deb460
3 changed files with 15 additions and 15 deletions

View File

@@ -141,7 +141,7 @@ class RPC extends Handler_Protected {
@$seq = (int) $_REQUEST['seq'];
$reply = [
'counters' => Counters::getAllCounters(),
'counters' => Counters::get_all(),
'seq' => $seq
];
@@ -222,7 +222,7 @@ class RPC extends Handler_Protected {
Feeds::_catchup($feed_id, $is_cat, false, $mode, [$search_query, $search_lang]);
// return counters here synchronously so that frontend can figure out next unread feed properly
print json_encode(['counters' => Counters::getAllCounters()]);
print json_encode(['counters' => Counters::get_all()]);
//print json_encode(array("message" => "UPDATE_COUNTERS"));
}