summaryrefslogtreecommitdiff
path: root/classes/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-03 12:26:49 +0300
committerAndrew Dolgov <[email protected]>2018-12-03 12:26:49 +0300
commitb3bc638a9fa87cdaf61bff446f8aa0534d2b49ee (patch)
treef5bd8fa16550252660cda74ec7267889efaa6cb7 /classes/opml.php
parent78cc470193448048759b3f315ee630e50acb064b (diff)
refactor OPML export/import code to be less horrible
Diffstat (limited to 'classes/opml.php')
-rw-r--r--classes/opml.php7
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));