mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-60176-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
7152d2ff7a
@ -198,12 +198,11 @@ 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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user