this.config = calCourseNode.getModuleConfiguration();
mainVC = createVelocityContainer("run");
ICourse course = CourseFactory.loadCourse(cenv.getCourseResourceableId());
CourseCalendars myCal = CourseCalendars.createCourseCalendarsWrapper(ureq, wControl, course);
CourseCalendarSubscription calSubscription = myCal.createSubscription(ureq);
if(CalEditController.getAutoSubscribe(config)) {
if(!calSubscription.isSubscribed()) {
calSubscription.subscribe(false);
ureq.getUserSession().getSingleUserEventCenter().fireEventToListenersOf(new KalendarModifiedEvent(), OresHelper.lookupType(CalendarManager.class));
}
}
calCtr = new CourseCalendarController(ureq, wControl, myCal, calSubscription, course);