mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:55:56 +00:00
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) {
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user