Merge branch 'MDL-24394' of git://github.com/timhunt/moodle

This commit is contained in:
Sam Hemelryk 2012-01-10 14:30:32 +13:00
commit 7dd813b948

View File

@ -108,7 +108,8 @@ class qtype_match_renderer extends qtype_with_combined_feedback_renderer {
protected function format_choices($question) {
$choices = array();
foreach ($question->get_choice_order() as $key => $choiceid) {
$choices[$key] = htmlspecialchars($question->choices[$choiceid]);
$choices[$key] = format_string($question->choices[$choiceid], true,
array('context' => $question->contextid));
}
return $choices;
}