summaryrefslogtreecommitdiffstats
path: root/apps/calendar/index.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-10-18 21:04:14 +0200
committerBart Visscher <bartv@thisnet.nl>2011-10-20 23:49:28 +0200
commit0eb6c759d7df509212da5c282821d3490d965dd6 (patch)
tree06b57d3fa6d42ddaf238ebf843300e0c5d3df4cb /apps/calendar/index.php
parent4fe48a50f0ae41f52e2b064f057462ffde324b5d (diff)
downloadnextcloud-server-0eb6c759d7df509212da5c282821d3490d965dd6.tar.gz
nextcloud-server-0eb6c759d7df509212da5c282821d3490d965dd6.zip
Connect newEvent & editEvent to fullcalendar
Diffstat (limited to 'apps/calendar/index.php')
-rw-r--r--apps/calendar/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/index.php b/apps/calendar/index.php
index 5f37d67a707..c01410e3718 100644
--- a/apps/calendar/index.php
+++ b/apps/calendar/index.php
@@ -10,10 +10,10 @@ require_once ('../../lib/base.php');
OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('calendar');
// Create default calendar ...
-$calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
+$calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser(), 1);
if( count($calendars) == 0){
OC_Calendar_Calendar::addCalendar(OC_User::getUser(),'default','Default calendar');
- $calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
+ $calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser(), 1);
}
$eventSources = array();
foreach($calendars as $calendar){