Fixed MDL-8582
Not sure if the hotpot module is converting ampersands correctly. $heading and $title are set up differently than in other modules: instead of outputting $course->title, a temporary $title variable is created and assigned that value. That made it difficult for me to decide whether it was already formatted elsewhere or not. Also I didn't format_string() any of the variables included in $navigation rings, because I assume these strings get processed by print_navigation(), which includes format_string().
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@
|
||||
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {
|
||||
$rsspath = rss_get_url($course->id, $USER->id, 'data', $data->id);
|
||||
$meta .= '<link rel="alternate" type="application/rss+xml" ';
|
||||
$meta .= 'title ="'.$course->shortname.': %fullname%" href="'.$rsspath.'" />';
|
||||
$meta .= 'title ="'. format_string($course->shortname) .': %fullname%" href="'.$rsspath.'" />';
|
||||
}
|
||||
if ($data->csstemplate) {
|
||||
$meta .= '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/mod/data/css.php?d='.$data->id.'" /> ';
|
||||
|
||||
Reference in New Issue
Block a user