diff options
author | Andrew Dolgov <[email protected]> | 2017-05-04 15:00:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-04 15:00:21 +0300 |
commit | a230bf88a9ce4589eeaf2d00226eafb78b4de01c (patch) | |
tree | 0f3656d2249c1de79162ed7e38a539292932f7c4 /classes/api.php | |
parent | 86a8351ca2abbacda557819cefb66379a450103c (diff) |
move to Article:
+ static function purge_orphans($do_output = false) {
move to Feeds
+ static function getGlobalUnread($user_id = false) {
+ static function getCategoryTitle($cat_id) {
+ static function getLabelUnread($label_id, $owner_uid = false) {
Diffstat (limited to 'classes/api.php')
-rw-r--r-- | classes/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/api.php b/classes/api.php index ad3ccea09..2dee790b3 100644 --- a/classes/api.php +++ b/classes/api.php @@ -101,7 +101,7 @@ class API extends Handler { if ($feed_id) { $this->wrap(self::STATUS_OK, array("unread" => getFeedUnread($feed_id, $is_cat))); } else { - $this->wrap(self::STATUS_OK, array("unread" => getGlobalUnread())); + $this->wrap(self::STATUS_OK, array("unread" => Feeds::getGlobalUnread())); } } @@ -170,7 +170,7 @@ class API extends Handler { if ($unread || !$unread_only) { array_push($cats, array("id" => $cat_id, - "title" => getCategoryTitle($cat_id), + "title" => Feeds::getCategoryTitle($cat_id), "unread" => $unread)); } } |