diff options
author | Andrew Dolgov <[email protected]> | 2018-12-03 12:26:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-03 12:26:49 +0300 |
commit | b3bc638a9fa87cdaf61bff446f8aa0534d2b49ee (patch) | |
tree | f5bd8fa16550252660cda74ec7267889efaa6cb7 /classes/opml.php | |
parent | 78cc470193448048759b3f315ee630e50acb064b (diff) |
refactor OPML export/import code to be less horrible
Diffstat (limited to 'classes/opml.php')
-rw-r--r-- | classes/opml.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/classes/opml.php b/classes/opml.php index 5b7690375..1b1897e7d 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -8,11 +8,8 @@ class Opml extends Handler_Protected { } function export() { - $output_name = $_REQUEST["filename"]; - if (!$output_name) $output_name = "TinyTinyRSS.opml"; - - $show_settings = $_REQUEST["settings"]; - + $output_name = "tt-rss_".date("Y-m-d").".opml"; + $show_settings = $_REQUEST["include_settings"]; $owner_uid = $_SESSION["uid"]; $rc = $this->opml_export($output_name, $owner_uid, false, ($show_settings == 1)); |