|
@@ -360,7 +360,7 @@ function iCalDownload()
|
|
|
$datestamp = date('Ymd\THis\Z', time());
|
|
|
$datestart = $event['year'] . ($event['month'] < 10 ? '0' . $event['month'] : $event['month']) . ($event['day'] < 10 ? '0' . $event['day'] : $event['day']);
|
|
|
|
|
|
- // Do we have a mutli day event?
|
|
|
+ // Do we have a event that spans several days?
|
|
|
if ($event['span'] > 1)
|
|
|
{
|
|
|
$dateend = strtotime($event['year'] . '-' . ($event['month'] < 10 ? '0' . $event['month'] : $event['month']) . '-' . ($event['day'] < 10 ? '0' . $event['day'] : $event['day']));
|
|
@@ -408,7 +408,7 @@ function iCalDownload()
|
|
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . 'GMT');
|
|
|
header('Accept-Ranges: bytes');
|
|
|
header('Connection: close');
|
|
|
- header('Content-Disposition: attachment; filename=' . $event['title'] . '.ics');
|
|
|
+ header('Content-Disposition: attachment; filename="' . $event['title'] . '.ics"');
|
|
|
if (empty($modSettings['enableCompressedOutput']))
|
|
|
header('Content-Length: ' . $smcFunc['strlen']($filecontents));
|
|
|
|