diff options
author | Andrew Dolgov <[email protected]> | 2021-03-02 10:24:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-02 10:24:15 +0300 |
commit | c4eaab8a31660d9b333b34cad2d5d458e30e4963 (patch) | |
tree | b202436f88dd5abca88e7929dd1b0ab13e600782 /classes/opml.php | |
parent | 7cf12233d7e24b0d745486e378a3351ef7cc67e4 (diff) |
feeds/_add_cat: use ORM
Diffstat (limited to 'classes/opml.php')
-rw-r--r-- | classes/opml.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/opml.php b/classes/opml.php index aa4879c4c..c60d411eb 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -31,7 +31,7 @@ class OPML extends Handler_Protected { <body class='claro ttrss_utility'> <h1>".__('OPML Utility')."</h1><div class='content'>"; - Feeds::_add_cat("Imported feeds"); + Feeds::_add_cat("Imported feeds", $owner_uid); $this->opml_notice(__("Importing OPML...")); @@ -521,9 +521,8 @@ class OPML extends Handler_Protected { if ($cat_id === false) { $order_id = (int) $root_node->attributes->getNamedItem('ttrssSortOrder')->nodeValue; - if (!$order_id) $order_id = 0; - Feeds::_add_cat($cat_title, $parent_id, $order_id); + Feeds::_add_cat($cat_title, $_SESSION['uid'], $parent_id ? $parent_id : null, (int)$order_id); $cat_id = $this->get_feed_category($cat_title, $parent_id); } |