diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index a5854dcb57..ad79443e75 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -901,7 +901,8 @@ function load_cal(url,id) { } else { $filename = $_GET['merge']; } - return calendar_uilist::download_document($timespan, $filename); + $merge = new calendar_merge(); + return $merge->download($filename, $timespan, '', $GLOBALS['egw_info']['user']['preferences']['calendar']['document_dir']); } return false; }