From 905ee48370c4472573dd43801ee727612888856c Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Mon, 4 Mar 2013 09:48:45 +1300 Subject: [PATCH] MDL-38055 course: fixed print_overview use of title attribute --- course/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index 3ad9df2affe..6dfc9fc7247 100644 --- a/course/lib.php +++ b/course/lib.php @@ -857,7 +857,7 @@ function print_overview($courses, array $remote_courses=array()) { foreach ($courses as $course) { $fullname = format_string($course->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))); echo $OUTPUT->box_start('coursebox'); - $attributes = array('title' => s($fullname)); + $attributes = array('title' => str_replace('&', '&', $fullname)); if (empty($course->visible)) { $attributes['class'] = 'dimmed'; } @@ -876,7 +876,7 @@ function print_overview($courses, array $remote_courses=array()) { } foreach ($remote_courses as $course) { echo $OUTPUT->box_start('coursebox'); - $attributes = array('title' => s($course->fullname)); + $attributes = array('title' => str_replace('&', '&', $course->fullname)); echo $OUTPUT->heading(html_writer::link( new moodle_url('/auth/mnet/jump.php', array('hostid' => $course->hostid, 'wantsurl' => '/course/view.php?id='.$course->remoteid)), format_string($course->shortname), -- 2.43.0