From c8226ce4cd32eaec9ee599ff0c9caebbf8834bd2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Mar 2012 19:30:23 +0400 Subject: [PATCH] API: add order_id to getFeeds --- include/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/functions.php b/include/functions.php index 909305af6..8a3c607f3 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4411,7 +4411,7 @@ if ($cat_id == -4 || $cat_id == -3) { $result = db_query($link, "SELECT - id, feed_url, cat_id, title, ". + id, feed_url, cat_id, title, order_id, ". SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated FROM ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"] . " ORDER BY cat_id, title " . $limit_qpart); @@ -4423,7 +4423,7 @@ $cat_qpart = "cat_id IS NULL"; $result = db_query($link, "SELECT - id, feed_url, cat_id, title, ". + id, feed_url, cat_id, title, order_id, ". SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated FROM ttrss_feeds WHERE $cat_qpart AND owner_uid = " . $_SESSION["uid"] . @@ -4445,7 +4445,8 @@ "unread" => (int)$unread, "has_icon" => $has_icon, "cat_id" => (int)$line["cat_id"], - "last_updated" => strtotime($line["last_updated"]) + "last_updated" => strtotime($line["last_updated"]), + "order_id" => (int) $line["order_id"], ); array_push($feeds, $row);