aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-27 18:43:59 -0700
committerzotlabs <mike@macgirvin.com>2018-03-27 18:43:59 -0700
commit14383a4c4aac4fc1b62e3dca25f9a2783cdd154c (patch)
treedbcc19a84ec3d34f8e6da46b563710cb8cf74427 /Zotlabs
parent08274ffab733a2e7c861006d6ba72f4695b069e6 (diff)
downloadvolse-hubzilla-14383a4c4aac4fc1b62e3dca25f9a2783cdd154c.tar.gz
volse-hubzilla-14383a4c4aac4fc1b62e3dca25f9a2783cdd154c.tar.bz2
volse-hubzilla-14383a4c4aac4fc1b62e3dca25f9a2783cdd154c.zip
uexport: set content-type to json and add sections info to the default filename if present
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Uexport.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Uexport.php b/Zotlabs/Module/Uexport.php
index 28c840ceb..9af1887dc 100644
--- a/Zotlabs/Module/Uexport.php
+++ b/Zotlabs/Module/Uexport.php
@@ -22,8 +22,8 @@ class Uexport extends \Zotlabs\Web\Controller {
$month = intval(argv(2));
}
- header('content-type: application/octet_stream');
- header('content-disposition: attachment; filename="' . $channel['channel_address'] . (($year) ? '-' . $year : '') . (($month) ? '-' . $month : '') . '.json"' );
+ header('content-type: application/json');
+ header('content-disposition: attachment; filename="' . $channel['channel_address'] . (($year) ? '-' . $year : '') . (($month) ? '-' . $month : '') . (($_REQUEST['sections']) ? '-' . $_REQUEST['sections'] : '') . '.json"' );
if($year) {
echo json_encode(identity_export_year(local_channel(),$year,$month));