aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Uexport.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-03-29 17:47:50 +0200
committerGitHub <noreply@github.com>2018-03-29 17:47:50 +0200
commit20ac91703d54679d2e5080ba2d4985e93986a515 (patch)
treedca933ae97c7eeaf855d8522163e989317ce918f /Zotlabs/Module/Uexport.php
parentc98776923a3aed4a0a17ca1412787de3b718eba9 (diff)
parente06e64823fbecbe67bcf59897ecad6b9c402744e (diff)
downloadvolse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.gz
volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.bz2
volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.zip
Merge pull request #1 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Module/Uexport.php')
-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));