From 9bd6b5083a38f4515963f7cd7aafee2f753fd646 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Sep 2017 19:09:11 +0200 Subject: [PATCH] no download (file only) --- build/router/controller/ics.php | 2 +- config/routes.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/router/controller/ics.php b/build/router/controller/ics.php index 24451e2..2e47eaa 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.'.ics'); + // header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics'); /* (2) Body */ readfile($file_name); diff --git a/config/routes.json b/config/routes.json index 3229c84..0b45c0d 100644 --- a/config/routes.json +++ b/config/routes.json @@ -11,7 +11,7 @@ "arguments": {} }, - "/ics/{diplome_id}": { + "/ics/{diplome_id}.ics": { "methods": ["GET"], "controller": "ics:download", "arguments": {