MDL-46212 questions: add {} whenver vars are put into "" strings
Having had one subtle bug cased be this, I decided to do a search and fix all of these.
This commit is contained in:
@@ -51,10 +51,10 @@ class question_export_form extends moodleform {
|
||||
foreach ($fileformatnames as $shortname => $fileformatname) {
|
||||
$currentgrp1 = array();
|
||||
$currentgrp1[] = $mform->createElement('radio', 'format', '', $fileformatname, $shortname);
|
||||
$mform->addGroup($currentgrp1, "formathelp[$i]", '', array('<br />'), false);
|
||||
$mform->addGroup($currentgrp1, "formathelp[{$i}]", '', array('<br />'), false);
|
||||
|
||||
if (get_string_manager()->string_exists('pluginname_help', 'qformat_' . $shortname)) {
|
||||
$mform->addHelpButton("formathelp[$i]", 'pluginname', 'qformat_' . $shortname);
|
||||
$mform->addHelpButton("formathelp[{$i}]", 'pluginname', 'qformat_' . $shortname);
|
||||
}
|
||||
|
||||
$i++ ;
|
||||
|
||||
Reference in New Issue
Block a user