diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-13 17:36:47 -0400 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-13 17:36:47 -0400 |
commit | 5d4c546693e2572d8bbf331fdcd0e9dce3bfba0d (patch) | |
tree | 020cfb903cb3281613933169c9cb68a7b3d69fbd /apps/calendar/share.php | |
parent | ea3499a712d87281bd749ed5c384430401f80f22 (diff) | |
download | nextcloud-server-5d4c546693e2572d8bbf331fdcd0e9dce3bfba0d.tar.gz nextcloud-server-5d4c546693e2572d8bbf331fdcd0e9dce3bfba0d.zip |
fix public sharing of calendars
Diffstat (limited to 'apps/calendar/share.php')
-rw-r--r-- | apps/calendar/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/share.php b/apps/calendar/share.php index 2ba50d9cf21..1cc8a2ef15e 100644 --- a/apps/calendar/share.php +++ b/apps/calendar/share.php @@ -4,8 +4,8 @@ $token = strip_tags($_GET['t']); $shared = OC_Calendar_Share::getElementByToken($token); $nl = "\n\r"; if($shared['type'] == OC_Calendar_Share::CALENDAR){ - $calendar = OC_Calendar_App::getCalendar($cal, false); - $calobjects = OC_Calendar_Object::all($cal); + $calendar = OC_Calendar_App::getCalendar($shared['id'], false); + $calobjects = OC_Calendar_Object::all($shared['id']); header('Content-Type: text/Calendar'); header('Content-Disposition: inline; filename=' . $calendar['displayname'] . '.ics'); foreach($calobjects as $calobject){ |