summaryrefslogtreecommitdiff
path: root/classes/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-07-01 10:02:24 +0300
committerAndrew Dolgov <[email protected]>2020-07-01 10:02:24 +0300
commitb6372a846dd8854a90852a72c63a65c15ca1f8b0 (patch)
tree39a8e2a590c939e5a56a579d66d98e1db541e6ec /classes/opml.php
parentfa653f5a43a07b7c9ed8063d47ea6f6d1f21518f (diff)
when exporting OPML via web UI, add user login to the filename
Diffstat (limited to 'classes/opml.php')
-rw-r--r--classes/opml.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/opml.php b/classes/opml.php
index c4523f83f..bea3164a4 100644
--- a/classes/opml.php
+++ b/classes/opml.php
@@ -8,7 +8,7 @@ class Opml extends Handler_Protected {
}
function export() {
- $output_name = "tt-rss_".date("Y-m-d").".opml";
+ $output_name = sprintf("tt-rss_%s_%s.opml", $_SESSION["name"], date("Y-m-d"));
$include_settings = $_REQUEST["include_settings"] == "1";
$owner_uid = $_SESSION["uid"];
@@ -62,7 +62,7 @@ class Opml extends Handler_Protected {
$ttrss_specific_qpart = "";
if ($cat_id) {
- $sth = $this->pdo->prepare("SELECT title,order_id
+ $sth = $this->pdo->prepare("SELECT title,order_id
FROM ttrss_feed_categories WHERE id = ?
AND owner_uid = ?");
$sth->execute([$cat_id, $owner_uid]);