summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2022-03-28 20:59:54 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2022-03-28 20:59:54 +0200
commit1c5ed7afb4bd22c5899f7cbcbdb8ca25d7733682 (patch)
tree9f536a9d0dfeca05c064bdbcbeb78661debd1c3e
parent3c714dc6d5b2d3e6036130dd870c9b661adadbad (diff)
downloadgigologadmin-1c5ed7afb4bd22c5899f7cbcbdb8ca25d7733682.tar.gz
gigologadmin-1c5ed7afb4bd22c5899f7cbcbdb8ca25d7733682.tar.bz2
gigologadmin-1c5ed7afb4bd22c5899f7cbcbdb8ca25d7733682.zip
use correct file name variable when saving file
-rw-r--r--includes/ical_export.php2
1 files changed, 1 insertions, 1 deletions
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();
}