add month to export filename when using month
This commit is contained in:
parent
9f4f967ead
commit
75fbf21e6b
@ -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));
|
||||
|
Reference in New Issue
Block a user