summaryrefslogtreecommitdiff
path: root/includes/pages/user_ical.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-05 15:35:14 +0200
committermsquare <msquare@notrademark.de>2018-10-30 22:50:22 +0100
commit90e1a949623ead173c0952f802d7b5c5487251b1 (patch)
tree544d29dde573cb135b514d0a84c2d95e9207392c /includes/pages/user_ical.php
parent0aa5f079258afd5276917c1aff565ec1c6411821 (diff)
Make application name configurable
* Added app_name configuration option * Extended `EngelsystemMailer` to prepend the application name to all mails Closes #426
Diffstat (limited to 'includes/pages/user_ical.php')
-rw-r--r--includes/pages/user_ical.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_ical.php b/includes/pages/user_ical.php
index 3430c3b3..f7ed64dd 100644
--- a/includes/pages/user_ical.php
+++ b/includes/pages/user_ical.php
@@ -36,7 +36,7 @@ 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";
+ $output = "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//-//" . config('app_name') . "//DE\r\nCALSCALE:GREGORIAN\r\n";
foreach ($shifts as $shift) {
$output .= make_ical_entry_from_shift($shift);
}