Commit f02178c4 authored by Juan Leyva's avatar Juan Leyva
Browse files

MDL-66877 mod: Fix unfiltered activity names in page headings

parent 62ff1b95
......@@ -137,7 +137,7 @@ if ($chapters = book_preload_chapters($book)) {
}
echo $OUTPUT->header();
echo $OUTPUT->heading($book->name);
echo $OUTPUT->heading(format_string($book->name));
$mform->display();
......
......@@ -67,7 +67,7 @@ if ($mform->is_cancelled()) {
} else if ($data = $mform->get_data()) {
echo $OUTPUT->header();
echo $OUTPUT->heading($book->name);
echo $OUTPUT->heading(format_string($book->name));
echo $OUTPUT->heading(get_string('importingchapters', 'booktool_importhtml'), 3);
// this is a bloody hack - children do not try this at home!
......@@ -85,7 +85,7 @@ if ($mform->is_cancelled()) {
}
echo $OUTPUT->header();
echo $OUTPUT->heading($book->name);
echo $OUTPUT->heading(format_string($book->name));
$mform->display();
......
......@@ -68,7 +68,7 @@
$PAGE->set_title(format_string($choice->name).": $strresponses");
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($choice->name, 2, null);
echo $OUTPUT->heading(format_string($choice->name), 2, null);
/// Check to see if groups are being used in this choice
$groupmode = groups_get_activity_groupmode($cm);
if ($groupmode) {
......
......@@ -118,7 +118,7 @@
$PAGE->set_title("$course->shortname: ".format_string($survey->name));
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($survey->name);
echo $OUTPUT->heading(format_string($survey->name));
/// Check to see if groups are being used in this survey
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
......
......@@ -59,7 +59,7 @@
$PAGE->set_title($strsurveysaved);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($survey->name);
echo $OUTPUT->heading(format_string($survey->name));
if (survey_already_done($survey->id, $USER->id)) {
notice(get_string("alreadysubmitted", "survey"), get_local_referer(false));
......
......@@ -69,7 +69,7 @@ $strsurvey = get_string("modulename", "survey");
$PAGE->set_title($survey->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($survey->name);
echo $OUTPUT->heading(format_string($survey->name));
// Check to see if groups are being used in this survey.
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment