Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-37017 My Moodle: Course name should be fullname of course

  • Loading branch information...
commit e6d4708fcf6c86df464bd2e89459d6696734f63d 1 parent 325e266
@rajeshtaneja rajeshtaneja authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 blocks/course_overview/renderer.php
View
4 blocks/course_overview/renderer.php
@@ -106,7 +106,9 @@ public function course_overview($courses, $overviews) {
$attributes = array('title' => s($course->fullname));
if ($course->id > 0) {
- $link = html_writer::link(new moodle_url('/course/view.php', array('id' => $course->id)), format_string($course->shortname, true, $course->id), $attributes);
+ $courseurl = new moodle_url('/course/view.php', array('id' => $course->id));
+ $coursefullname = format_string($course->fullname, true, $course->id);
+ $link = html_writer::link($courseurl, $coursefullname, $attributes);
$html .= $this->output->heading($link, 2, 'title');
} else {
$html .= $this->output->heading(html_writer::link(
Please sign in to comment.
Something went wrong with that request. Please try again.