mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'wip-mdl-37017' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
46c02a6a91
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user