MDL-46691 mod_choice: apply filters to user input

This commit is contained in:
Marina Glancy
2014-08-19 03:05:55 +02:00
committed by Eloy Lafuente (stronk7)
parent d79710afde
commit 0a88b33a6a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ function choice_prepare_options($choice, $user, $coursemodule, $allresponses) {
$option = new stdClass;
$option->attributes = new stdClass;
$option->attributes->value = $optionid;
$option->text = $text;
$option->text = format_string($text);
$option->maxanswers = $choice->maxanswers[$optionid];
$option->displaylayout = $choice->display;
+2 -2
View File
@@ -69,11 +69,11 @@
choice_user_submit_response($answer, $choice, $USER->id, $course, $cm);
}
echo $OUTPUT->header();
echo $OUTPUT->heading($choice->name, 2, null);
echo $OUTPUT->heading(format_string($choice->name), 2, null);
echo $OUTPUT->notification(get_string('choicesaved', 'choice'),'notifysuccess');
} else {
echo $OUTPUT->header();
echo $OUTPUT->heading($choice->name, 2, null);
echo $OUTPUT->heading(format_string($choice->name), 2, null);
}