MDL-60176 calendar: Show all activity events are course events
This commit is contained in:
+3
-4
@@ -177,11 +177,10 @@ class calendar_event_exporter extends event_exporter_base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_calendar_event_type() {
|
||||
$type = $this->event->get_type();
|
||||
if ($type == 'open' || $type == 'close') {
|
||||
$type = 'course';
|
||||
if ($this->event->get_course_module()) {
|
||||
return 'course';
|
||||
}
|
||||
|
||||
return $type;
|
||||
return $this->event->get_type();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user