From b3bc638a9fa87cdaf61bff446f8aa0534d2b49ee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 12:26:49 +0300 Subject: refactor OPML export/import code to be less horrible --- classes/opml.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'classes/opml.php') 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)); -- cgit v1.2.3