mirror of
https://github.com/moodle/moodle.git
synced 2025-03-23 00:50:15 +01:00
Merge branch 'MDL-64465' of https://github.com/timhunt/moodle
This commit is contained in:
commit
b48f694a69
@ -136,7 +136,7 @@ class qtype_calculated_edit_form extends qtype_numerical_edit_form {
|
||||
if (isset($this->question->id)) {
|
||||
$mform->insertElementBefore($mform->createElement('static', 'initialname',
|
||||
get_string('questionstoredname', 'qtype_calculated'),
|
||||
format_string($this->initialname, true, array('context' => $this->context))), 'name');
|
||||
format_string($this->initialname)), 'name');
|
||||
};
|
||||
$addfieldsname = 'updatecategory';
|
||||
$addstring = get_string('updatecategory', 'qtype_calculated');
|
||||
|
@ -126,7 +126,7 @@ class qtype_calculatedmulti_edit_form extends question_edit_form {
|
||||
if (isset($this->question->id)) {
|
||||
$mform->insertElementBefore($mform->createElement('static', 'initialname',
|
||||
get_string('questionstoredname', 'qtype_calculated'),
|
||||
format_string($this->initialname, true, array('context' => $this->context))), 'name');
|
||||
format_string($this->initialname)), 'name');
|
||||
};
|
||||
$addfieldsname = 'updatecategory';
|
||||
$addstring = get_string('updatecategory', 'qtype_calculated');
|
||||
|
@ -124,8 +124,7 @@ 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] = format_string($question->choices[$choiceid], true,
|
||||
array('context' => $question->contextid));
|
||||
$choices[$key] = format_string($question->choices[$choiceid]);
|
||||
}
|
||||
return $choices;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user