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:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user