From 75fbf21e6b423a91ff589d2fa349487623bc1a36 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 17 Aug 2015 22:27:41 -0700 Subject: add month to export filename when using month --- mod/uexport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/uexport.php b/mod/uexport.php index 6874ceb91..fbbe9953b 100644 --- a/mod/uexport.php +++ b/mod/uexport.php @@ -18,7 +18,7 @@ function uexport_init(&$a) { } header('content-type: application/octet_stream'); - header('content-disposition: attachment; filename="' . $channel['channel_address'] . (($year) ? '-' . $year : '') . '.json"' ); + header('content-disposition: attachment; filename="' . $channel['channel_address'] . (($year) ? '-' . $year : '') . (($month) ? '-' . $month : '') . '.json"' ); if($year) { echo json_encode(identity_export_year(local_channel(),$year,$month)); -- cgit v1.2.3