restore .ics format header

This commit is contained in:
xdrm-brackets 2017-09-14 17:15:08 +02:00
parent 1fa1e4f212
commit 3485e74805
1 changed files with 2 additions and 4 deletions

View File

@ -39,13 +39,11 @@
/* [2] Display file
=========================================================*/
/* (1) Headers */
// header('Content-Type: text/calendar; charset=utf-8');
// header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
header('Content-Type: text/calendar; charset=utf-8');
header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
/* (2) Body */
echo "<pre>";
readfile($file_name);
echo "</pre>";
}