1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

refactor OPML export/import code to be less horrible

This commit is contained in:
Andrew Dolgov
2018-12-03 12:26:49 +03:00
parent 78cc470193
commit b3bc638a9f
5 changed files with 106 additions and 101 deletions

View File

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