summaryrefslogtreecommitdiff
path: root/includes/pages/user_ical.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/user_ical.php')
-rw-r--r--includes/pages/user_ical.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/pages/user_ical.php b/includes/pages/user_ical.php
index 0c4bd49a..f9c364e6 100644
--- a/includes/pages/user_ical.php
+++ b/includes/pages/user_ical.php
@@ -34,6 +34,7 @@ function user_ical()
function send_ical_from_shifts($shifts)
{
header('Content-Type: text/calendar; charset=utf-8');
+ header('Content-Disposition: attachment; filename=shifts.ics');
$output = "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//-//Engelsystem//DE\r\nCALSCALE:GREGORIAN\r\n";
foreach ($shifts as $shift) {
$output .= make_ical_entry_from_shift($shift);