Skip to content
Browse files

Merge branch 'wip-mdl-37017-m24' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_24_STABLE
  • Loading branch information...
2 parents 6d0c04c + e6d4708 commit b004c163ee13fc2b3fa8b7806be53f028a26992c Sam Hemelryk committed Dec 11, 2012
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(

0 comments on commit b004c16

Please sign in to comment.
Something went wrong with that request. Please try again.