MDL-65928 mod_choice: Use proper string for 'select/deselect all' labels

* Because string concatenation is bad!
This commit is contained in:
Jun Pataleta 2019-07-12 15:43:40 +08:00
parent 05b25140d0
commit 622d83d7bc
2 changed files with 4 additions and 2 deletions

View file

@ -193,8 +193,8 @@ class mod_choice_renderer extends plugin_renderer_base {
// Build the select/deselect all for this option.
$selectallid = 'select-response-option-' . $optionid;
$togglegroup = 'responses response-option-' . $optionid;
$selectalltext = get_string('selectall', 'moodle') . ' ' . $headertitle;
$deselectalltext = get_string('deselectall', 'moodle') . ' ' . $headertitle;
$selectalltext = get_string('selectalloption', 'choice', $headertitle);
$deselectalltext = get_string('deselectalloption', 'choice', $headertitle);
$mastercheckbox = new \core\output\checkbox_toggleall($togglegroup, true, [
'id' => $selectallid,
'name' => $selectallid,