Merge branch 'wip-mdl-37017' of git://github.com/rajeshtaneja/moodle

This commit is contained in:
Sam Hemelryk 2012-12-11 14:54:16 +13:00
commit 46c02a6a91

View File

@ -106,7 +106,9 @@ class block_course_overview_renderer extends plugin_renderer_base {
$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(