From: Georg Ehrke Date: Fri, 13 Apr 2012 21:36:47 +0000 (-0400) Subject: fix public sharing of calendars X-Git-Tag: v4.0.0beta~244^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d4c546693e2572d8bbf331fdcd0e9dce3bfba0d;p=nextcloud-server.git fix public sharing of calendars --- 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){ diff --git a/apps/calendar/templates/share.dropdown.php b/apps/calendar/templates/share.dropdown.php index 8e3baa77248..3ed75be6363 100644 --- a/apps/calendar/templates/share.dropdown.php +++ b/apps/calendar/templates/share.dropdown.php @@ -73,5 +73,5 @@ echo html_select_options($allgroups, array());
>
- +
\ No newline at end of file