summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-02-25 14:06:26 +0300
committerAndrew Dolgov <[email protected]>2019-02-25 14:06:26 +0300
commit32db1cb8722d353d2529305b0b3194576f7548fd (patch)
tree0abce9cc6d0ab20897860e671ad93036505cab01 /include
parent527e7adc8a6ef835606cc60c7337b38a8e26eaf7 (diff)
OPML: include (and import) ttrss per-feed update interval and sort order
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions.php b/include/functions.php
index a1aeb7135..6a612115e 100755
--- a/include/functions.php
+++ b/include/functions.php
@@ -1981,7 +1981,7 @@
return true;
}
- function add_feed_category($feed_cat, $parent_cat_id = false) {
+ function add_feed_category($feed_cat, $parent_cat_id = false, $order_id = 0) {
if (!$feed_cat) return false;
@@ -2004,9 +2004,9 @@
if (!$sth->fetch()) {
- $sth = $pdo->prepare("INSERT INTO ttrss_feed_categories (owner_uid,title,parent_cat)
- VALUES (?, ?, ?)");
- $sth->execute([$_SESSION['uid'], $feed_cat, $parent_cat_id]);
+ $sth = $pdo->prepare("INSERT INTO ttrss_feed_categories (owner_uid,title,parent_cat,order_id)
+ VALUES (?, ?, ?, ?)");
+ $sth->execute([$_SESSION['uid'], $feed_cat, $parent_cat_id, (int)$order_id]);
if (!$tr_in_progress) $pdo->commit();