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

This commit is contained in:
Juan Leyva
2019-11-28 17:19:33 +01:00
parent a44b2f35d0
commit 0d588f2275
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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();
+2 -2
View File
@@ -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();
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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.