MDL-10353, (calendar) accidentally backported new stuff from HEAD
This commit is contained in:
@@ -258,12 +258,6 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users, $courseid) {
|
||||
|
||||
// First, print details about events that start today
|
||||
foreach ($events as $event) {
|
||||
|
||||
// Set event course class if a course event
|
||||
if($event->courseid != 0 && $event->courseid != SITEID && $event->groupid == 0) {
|
||||
$event->class = 'event_course'.array_search($event->courseid, $courses) % CALENDAR_MAXCOURSES;
|
||||
}
|
||||
$event->calendarcourseid = $courseid;
|
||||
|
||||
if ($event->timestart >= $starttime && $event->timestart <= $endtime) { // Print it now
|
||||
|
||||
|
||||
Reference in New Issue
Block a user