]> git.wh0rd.org Git - tt-rss.git/commitdiff
API: add order_id to getFeeds
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 8 Mar 2012 15:30:23 +0000 (19:30 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 8 Mar 2012 15:30:23 +0000 (19:30 +0400)
include/functions.php

index 909305af633f876567f09658f60e47970b0c1447..8a3c607f3400f968acadea2c6721b188504458c3 100644 (file)
 
                        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);
                                        $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"] .
                                                        "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);