summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-03-08 19:30:23 +0400
committerAndrew Dolgov <[email protected]>2012-03-08 19:30:23 +0400
commitc8226ce4cd32eaec9ee599ff0c9caebbf8834bd2 (patch)
treedb7abe10f8caa0d87da1d0d125cc6ddcdfecc074 /include/functions.php
parentb11e9943d86c373d458725b50524d83f17fe4b70 (diff)
API: add order_id to getFeeds
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php7
1 files 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);