MDL-66877 mod: Fix unfiltered activity names in page headings
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user