summaryrefslogtreecommitdiffstats
path: root/apps/calendar/export.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/export.php')
-rw-r--r--apps/calendar/export.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php
index bf0503defbc..0972ee0f788 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 = "\r\n";
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,7 +21,7 @@ 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');