1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-27 20:11:29 +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

@@ -102,7 +102,7 @@ class API extends Handler {
/* Method added for ttrss-reader for Android */
function getCounters() {
$this->wrap(self::STATUS_OK, Counters::getAllCounters());
$this->wrap(self::STATUS_OK, Counters::get_all());
}
function getFeeds() {
@@ -510,7 +510,7 @@ class API extends Handler {
/* API only: -4 All feeds, including virtual feeds */
if ($cat_id == -4 || $cat_id == -2) {
$counters = Counters::getLabelCounters(true);
$counters = Counters::get_labels(true);
foreach (array_values($counters) as $cv) {