mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-58852 choice: Use multilang for choice options in charts
This commit is contained in:
parent
17fb1d84a2
commit
46470ad02c
@ -530,7 +530,8 @@ function prepare_choice_show_results($choice, $course, $cm, $allresponses) {
|
||||
$allusers = [];
|
||||
foreach ($choice->option as $optionid => $optiontext) {
|
||||
$display->options[$optionid] = new stdClass;
|
||||
$display->options[$optionid]->text = $optiontext;
|
||||
$display->options[$optionid]->text = format_string($optiontext, true,
|
||||
['context' => context_module::instance($cm->id)]);
|
||||
$display->options[$optionid]->maxanswer = $choice->maxanswers[$optionid];
|
||||
|
||||
if (array_key_exists($optionid, $allresponses)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user