From 65af3b2cbba06901612cf721359aea792037cc5a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 5 May 2017 11:54:31 +0300 Subject: move counter stuff to a separate class --- 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 bffa2bf07..1fc84884e 100644 --- a/classes/api.php +++ b/classes/api.php @@ -107,7 +107,7 @@ class API extends Handler { /* Method added for ttrss-reader for Android */ function getCounters() { - $this->wrap(self::STATUS_OK, getAllCounters()); + $this->wrap(self::STATUS_OK, Counters::getAllCounters()); } function getFeeds() { @@ -537,7 +537,7 @@ class API extends Handler { /* Labels */ if ($cat_id == -4 || $cat_id == -2) { - $counters = getLabelCounters(true); + $counters = Counters::getLabelCounters(true); foreach (array_values($counters) as $cv) { -- cgit v1.2.3-54-g00ecf