From 6e6137cdcb9d907f214547dff76e1bfbcb02573a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Feb 2019 09:40:03 +0100 Subject: [PATCH] fix not working Export from calendar edit popup's actions --- calendar/inc/class.calendar_uiforms.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 19b5d13d8f..87a960ad54 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -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); }