summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-26 16:29:57 +0300
committerAndrew Dolgov <[email protected]>2017-06-26 16:29:57 +0300
commitc053b97697954a60cb809a228a21287ddfbb8211 (patch)
treee605823a536c023b17e394e5de5acbd5c477e2f0 /classes/api.php
parentbfe162fce210f38cf45ce7add5dd8fe73d8a0c0c (diff)
pref/feeds: start user category ordering from 1
api, getFeeds: send subcategory order_id
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 0176e1672..00e58ee50 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -569,7 +569,7 @@ class API extends Handler {
if ($include_nested && $cat_id) {
$result = db_query("SELECT
- id, title FROM ttrss_feed_categories
+ id, title, order_id FROM ttrss_feed_categories
WHERE parent_cat = '$cat_id' AND owner_uid = " . $_SESSION["uid"] .
" ORDER BY id, title");
@@ -583,6 +583,7 @@ class API extends Handler {
"title" => $line["title"],
"unread" => $unread,
"is_cat" => true,
+ "order_id" => (int) $line["order_id"]
);
array_push($feeds, $row);
}