Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e84b16
)
MDL-24394 qtype_match: should be able to use multilang for the choices.
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Mon, 9 Jan 2012 18:05:06 +0000
(18:05 +0000)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Mon, 9 Jan 2012 18:05:06 +0000
(18:05 +0000)
question/type/match/renderer.php
patch
|
blob
|
blame
|
history
diff --git
a/question/type/match/renderer.php
b/question/type/match/renderer.php
index
074bb47
..
8a3372c
100644
(file)
--- a/
question/type/match/renderer.php
+++ b/
question/type/match/renderer.php
@@
-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;
}