From e2f170c6aee1465228b3cafe74681b68116e602b Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Sun, 27 Mar 2022 11:40:20 +0200 Subject: ics file gets first 20 characters from concert name --- includes/ical_export.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/ical_export.php b/includes/ical_export.php index fa963bc..637bb58 100644 --- a/includes/ical_export.php +++ b/includes/ical_export.php @@ -17,6 +17,7 @@ if ( ! class_exists( "GiglogAdmin_IcalExport" ) ) $concert = GiglogAdmin_Concert::get($evid); $cfullname = $concert->cname().' live at '. $concert->venue()->name() .', '.$concert->venue()->city(); + $cshortname=substr($cfullname,0,20); $fdate = strtotime($concert->cdate()); $newformat = date('Ymd',$fdate); // create a new calendar @@ -68,6 +69,7 @@ if ( ! class_exists( "GiglogAdmin_IcalExport" ) ) ->createCalendar(); header( 'Content-Type: text/calendar' ); + header( 'content-disposition: attachment;filename='.$cshortname.'.ics'); echo $vcalendarString; die(); } -- cgit v1.2.3