From 8460ba237d010c956a9234af9eca898add4b15b9 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 18:45:43 +0200 Subject: [PATCH] added .ics to file name when downloading --- build/router/controller/ics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/router/controller/ics.php b/build/router/controller/ics.php index 757836a..24451e2 100644 --- a/build/router/controller/ics.php +++ b/build/router/controller/ics.php @@ -37,7 +37,7 @@ =========================================================*/ /* (1) Headers */ header('Content-Type: text/calendar; charset=utf-8'); - header('Content-Disposition: attachment; filename='.$this->diplome_id); + header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics'); /* (2) Body */ readfile($file_name);