mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-65928 mod_choice: Use proper string for 'select/deselect all' labels
* Because string concatenation is bad!
This commit is contained in:
parent
05b25140d0
commit
622d83d7bc
2 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue