MDL-24394 qtype_match: should be able to use multilang for the choices.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 9 Jan 2012 18:05:06 +0000 (18:05 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 9 Jan 2012 18:05:06 +0000 (18:05 +0000)
question/type/match/renderer.php

index 074bb47..8a3372c 100644 (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;
     }