From: Georg Ehrke Date: Sat, 31 Mar 2012 16:27:30 +0000 (+0100) Subject: add new parameters to export file X-Git-Tag: v4.0.0beta~244^2~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b3f074309fe9075119a56c337d7e8ad30d2c73a;p=nextcloud-server.git add new parameters to export file --- diff --git a/apps/calendar/export.php b/apps/calendar/export.php index 2736eec96c2..e4caa1bde75 100644 --- a/apps/calendar/export.php +++ b/apps/calendar/export.php @@ -13,7 +13,7 @@ $cal = isset($_GET['calid']) ? $_GET['calid'] : NULL; $event = isset($_GET['eventid']) ? $_GET['eventid'] : NULL; $nl = "\n\r"; if(isset($cal)){ - $calendar = OC_Calendar_App::getCalendar($cal); + $calendar = OC_Calendar_App::getCalendar($cal, true); $calobjects = OC_Calendar_Object::all($cal); header('Content-Type: text/Calendar'); header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics'); @@ -21,11 +21,11 @@ if(isset($cal)){ echo $calobject['calendardata'] . $nl; } }elseif(isset($event)){ - $data = OC_Calendar_App::getEventObject($_GET['eventid']); + $data = OC_Calendar_App::getEventObject($_GET['eventid'], true); $calendarid = $data['calendarid']; $calendar = OC_Calendar_App::getCalendar($calendarid); header('Content-Type: text/Calendar'); header('Content-Disposition: inline; filename=' . $data['summary'] . '.ics'); echo $data['calendardata']; } -?> +?> \ No newline at end of file