Merge branch 'wip-MDL-53798-master' of https://github.com/marinaglancy/moodle

This commit is contained in:
Dan Poltawski
2016-04-20 11:09:48 +01:00
+1 -1
View File
@@ -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'),