Skip to content

Commit

Permalink
MDL-53798 search: correct URL for frontpage course
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Apr 13, 2016
1 parent b611ade commit b06a90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/classes/document.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public function export_for_template(\renderer_base $output) {

$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'),
Expand Down

0 comments on commit b06a90b

Please sign in to comment.