add new parameters to export file
This commit is contained in:
parent
1f8cf2d8f2
commit
4b3f074309
|
@ -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'];
|
||||
}
|
||||
?>
|
||||
?>
|
Loading…
Reference in New Issue