From 1c5ed7afb4bd22c5899f7cbcbdb8ca25d7733682 Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Mon, 28 Mar 2022 20:59:54 +0200 Subject: use correct file name variable when saving file --- includes/ical_export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ical_export.php b/includes/ical_export.php index ec45b13..9a3b0c0 100644 --- a/includes/ical_export.php +++ b/includes/ical_export.php @@ -77,7 +77,7 @@ if ( ! class_exists( "GiglogAdmin_IcalExport" ) ) ->createCalendar(); header( 'Content-Type: text/calendar' ); - header( 'content-disposition: attachment;filename='.$cshortname.'.ics'); + header( 'content-disposition: attachment;filename='.$filename.'.ics'); echo $vcalendarString; die(); } -- cgit v1.2.3