Skip to content

Commit

Permalink
Merge branch 'wip-mdl-37017' of git://github.com/rajeshtaneja/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Dec 11, 2012
2 parents 9a2a9b1 + 7d0eaf7 commit 46c02a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blocks/course_overview/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 46c02a6

Please sign in to comment.