1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:15:55 +00:00

OPML: include (and import) ttrss per-feed update interval and sort order

This commit is contained in:
Andrew Dolgov
2019-02-25 14:06:26 +03:00
parent 527e7adc8a
commit 32db1cb872
2 changed files with 48 additions and 20 deletions

View File

@@ -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();