From 5704deb460f740ed56be5ae4dbddbf5296a9c603 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Feb 2021 16:00:54 +0300 Subject: counters: unify naming --- classes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/api.php') diff --git a/classes/api.php b/classes/api.php index 4d1c15598..62ce1764c 100755 --- a/classes/api.php +++ b/classes/api.php @@ -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) { -- cgit v1.2.3