]> git.wh0rd.org - tt-rss.git/blobdiff - classes/api.php
move to Article:
[tt-rss.git] / classes / api.php
index ad3ccea09d34e2ab7ee57c172f5a6660acf809e1..2dee790b3b6eba4e9fe9c75e2d5598de8925805a 100644 (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));
                                }
                        }