1
0
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:
Andrew Dolgov
2017-05-04 15:00:21 +03:00
parent 86a8351ca2
commit a230bf88a9
10 changed files with 128 additions and 127 deletions

View File

@@ -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));
}
}