Update agendaexport.php after review

This commit is contained in:
Tobias Sekan 2020-01-27 08:28:14 +01:00 committed by GitHub
parent ce9d1a320f
commit 245b6e6554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,10 +157,12 @@ $agenda=new ActionComm($db);
$cachedelay=0;
if (! empty($conf->global->MAIN_AGENDA_EXPORT_CACHE)) $cachedelay=$conf->global->MAIN_AGENDA_EXPORT_CACHE;
$exportholidays = empty($conf->global->AGENDA_SHOW_HOLIDAYS) ? 0 : 1;
// Build file
if ($format == 'ical' || $format == 'vcal')
{
$result=$agenda->build_exportfile($format, $type, $cachedelay, $filename, $filters);
$result=$agenda->build_exportfile($format, $type, $cachedelay, $filename, $filters, $exportholidays);
if ($result >= 0)
{
$attachment = true;
@ -195,7 +197,7 @@ if ($format == 'ical' || $format == 'vcal')
if ($format == 'rss')
{
$result=$agenda->build_exportfile($format, $type, $cachedelay, $filename, $filters);
$result=$agenda->build_exportfile($format, $type, $cachedelay, $filename, $filters, $exportholidays);
if ($result >= 0)
{
$attachment = false;