provide content-disposition for exported ics file
This commit is contained in:
parent
5146e6e76b
commit
db9a0282c4
@ -450,6 +450,7 @@ function events_content(&$a) {
|
||||
|
||||
if($export) {
|
||||
header('Content-type: text/calendar');
|
||||
header('content-disposition: attachment; filename="' . t('calendar') . '-' . $channel['channel_address'] . '.ics"' );
|
||||
echo ical_wrapper($r);
|
||||
killme();
|
||||
}
|
||||
|
Reference in New Issue
Block a user