Merge branch 'wip-MDL-53798-master' of https://github.com/marinaglancy/moodle
This commit is contained in:
@@ -563,7 +563,7 @@ class document implements \renderable, \templatable {
|
||||
|
||||
$title = $this->is_set('title') ? $this->format_text($this->get('title')) : '';
|
||||
$data = [
|
||||
'courseurl' => new \moodle_url('/course/view.php?id=' . $this->get('courseid')),
|
||||
'courseurl' => course_get_url($this->get('courseid')),
|
||||
'coursefullname' => format_string($this->get('coursefullname'), true, array('context' => $this->get('contextid'))),
|
||||
'modified' => userdate($this->get('modified')),
|
||||
'title' => ($title !== '') ? $title : get_string('notitle', 'search'),
|
||||
|
||||
Reference in New Issue
Block a user