Anpassung

iCal-Link hat jetzt die Endung *.ical
This commit is contained in:
ppa. Marco Glietsch 2021-11-10 15:37:07 +01:00
parent 3dfe08273e
commit e76da0d33e
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ class URLHelper
$url .= "/" . $post->type . "/" .$year. "/" .$department. "/". $instance;
if(is_string($suffix))
{
$url .= "/$suffix";
$url .= "/dienstplan.$suffix";
}
$url .= $slug;
break;

View File

@ -345,7 +345,7 @@ class ServiceController extends PostController
$viewFile = 'inc.views.details';
break;
case 'ical':
case 'dienstplan.ical':
$viewFile = 'inc.views.iCal';
break;
}
@ -357,7 +357,7 @@ class ServiceController extends PostController
switch($type)
{
case 'ical':
case 'dienstplan.ical':
$response = Response::make($view, 200);
$response->header("Content-Disposition", "attachment; filename=Dienstplan-$year-$department-$instance.ics");
$response->header("Content-Type", "text/calendar; charset=utf-8");