1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:06:02 +00:00

move counter stuff to a separate class

This commit is contained in:
Andrew Dolgov
2017-05-05 11:54:31 +03:00
parent 46b433933e
commit 65af3b2cbb
4 changed files with 206 additions and 201 deletions

View File

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