From: Andrew Dolgov Date: Mon, 26 Jun 2017 13:29:57 +0000 (+0300) Subject: pref/feeds: start user category ordering from 1 X-Git-Tag: 17.12~166^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c053b97697954a60cb809a228a21287ddfbb8211;p=tt-rss.git pref/feeds: start user category ordering from 1 api, getFeeds: send subcategory order_id --- diff --git a/classes/api.php b/classes/api.php index 0176e167..00e58ee5 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); } diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 78545170..b0f82e7e 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -339,7 +339,7 @@ class Pref_Feeds extends Handler_Protected { owner_uid = " . $_SESSION["uid"]); } - $order_id = 0; + $order_id = 1; $cat = $data_map[$item_id];