MDL-38055 course: fixed double encoding of title properties

This commit is contained in:
Sam Hemelryk
2013-03-20 17:27:08 +13:00
parent 7112729206
commit 1d8a1a87de
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -101,7 +101,8 @@ class block_course_overview_renderer extends plugin_renderer_base {
}
$attributes = array('title' => s($course->fullname));
// No need to pass title through s() here as it will be done automatically by html_writer.
$attributes = array('title' => $course->fullname);
if ($course->id > 0) {
$courseurl = new moodle_url('/course/view.php', array('id' => $course->id));
$coursefullname = format_string($course->fullname, true, $course->id);