mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix not working Export from calendar edit popup's actions
This commit is contained in:
parent
711e5280cb
commit
6e6137cdcb
@ -2713,9 +2713,9 @@ class calendar_uiforms extends calendar_ui
|
||||
}
|
||||
else
|
||||
{
|
||||
html::content_header('event.ics','text/calendar',bytes($ical));
|
||||
Api\Header\Content::type('event.ics','text/calendar',bytes($ical));
|
||||
echo $ical;
|
||||
common::egw_exit();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
if (is_array($content))
|
||||
@ -2735,9 +2735,9 @@ class calendar_uiforms extends calendar_ui
|
||||
else
|
||||
{
|
||||
$ical =& $boical->exportVCal($events,'2.0','PUBLISH',false);
|
||||
html::content_header($content['file'] ? $content['file'] : 'event.ics','text/calendar',bytes($ical));
|
||||
Api\Header\Content::type($content['file'] ? $content['file'] : 'event.ics','text/calendar',bytes($ical));
|
||||
echo $ical;
|
||||
common::egw_exit();
|
||||
exit();
|
||||
}
|
||||
}
|
||||
if (!is_array($content))
|
||||
@ -2752,7 +2752,7 @@ class calendar_uiforms extends calendar_ui
|
||||
$content['msg'] = $msg;
|
||||
|
||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('calendar') . ' - ' . lang('iCal Export');
|
||||
$etpl = new etemplate_new('calendar.export');
|
||||
$etpl = new Etemplate('calendar.export');
|
||||
$etpl->exec('calendar.calendar_uiforms.export',$content);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user