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) {
|
if($export) {
|
||||||
header('Content-type: text/calendar');
|
header('Content-type: text/calendar');
|
||||||
|
header('content-disposition: attachment; filename="' . t('calendar') . '-' . $channel['channel_address'] . '.ics"' );
|
||||||
echo ical_wrapper($r);
|
echo ical_wrapper($r);
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user