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;
|
$event = isset($_GET['eventid']) ? $_GET['eventid'] : NULL;
|
||||||
$nl = "\n\r";
|
$nl = "\n\r";
|
||||||
if(isset($cal)){
|
if(isset($cal)){
|
||||||
$calendar = OC_Calendar_App::getCalendar($cal);
|
$calendar = OC_Calendar_App::getCalendar($cal, true);
|
||||||
$calobjects = OC_Calendar_Object::all($cal);
|
$calobjects = OC_Calendar_Object::all($cal);
|
||||||
header('Content-Type: text/Calendar');
|
header('Content-Type: text/Calendar');
|
||||||
header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics');
|
header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics');
|
||||||
|
@ -21,7 +21,7 @@ if(isset($cal)){
|
||||||
echo $calobject['calendardata'] . $nl;
|
echo $calobject['calendardata'] . $nl;
|
||||||
}
|
}
|
||||||
}elseif(isset($event)){
|
}elseif(isset($event)){
|
||||||
$data = OC_Calendar_App::getEventObject($_GET['eventid']);
|
$data = OC_Calendar_App::getEventObject($_GET['eventid'], true);
|
||||||
$calendarid = $data['calendarid'];
|
$calendarid = $data['calendarid'];
|
||||||
$calendar = OC_Calendar_App::getCalendar($calendarid);
|
$calendar = OC_Calendar_App::getCalendar($calendarid);
|
||||||
header('Content-Type: text/Calendar');
|
header('Content-Type: text/Calendar');
|
||||||
|
|
Loading…
Reference in New Issue