mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 08:00:37 +01:00
Merge branch 'MDL-70355-master' of git://github.com/lucaboesch/moodle
This commit is contained in:
commit
4d3da873b2
@ -116,7 +116,11 @@ class calendar_event_exporter extends event_exporter_base {
|
||||
$values['islastday'] = false;
|
||||
$today = $this->related['type']->timestamp_to_date_array($this->related['today']);
|
||||
|
||||
$values['popupname'] = $this->event->get_name();
|
||||
if ($hascourse) {
|
||||
$values['popupname'] = external_format_string($this->event->get_name(), \context_course::instance($course->id), true);
|
||||
} else {
|
||||
$values['popupname'] = external_format_string($this->event->get_name(), \context_system::instance(), true);
|
||||
}
|
||||
|
||||
$times = $this->event->get_times();
|
||||
if ($duration = $times->get_duration()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user