provide content-disposition for exported ics file

This commit is contained in:
redmatrix 2015-07-20 21:28:33 -07:00
parent 5146e6e76b
commit db9a0282c4

View File

@ -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();
}