From: Andrew Dolgov Date: Thu, 8 Mar 2012 15:30:23 +0000 (+0400) Subject: API: add order_id to getFeeds X-Git-Tag: 1.5.11~33 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c8226ce4cd32eaec9ee599ff0c9caebbf8834bd2;p=tt-rss.git API: add order_id to getFeeds --- diff --git a/include/functions.php b/include/functions.php index 909305af..8a3c607f 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);