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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user