diff --git a/question/type/calculated/edit_calculated_form.php b/question/type/calculated/edit_calculated_form.php index dcc48a10ef1..4ded3cc84b4 100644 --- a/question/type/calculated/edit_calculated_form.php +++ b/question/type/calculated/edit_calculated_form.php @@ -138,7 +138,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'), - $this->initialname), 'name'); + format_string($this->initialname, true, array('context' => $this->context))), 'name'); }; $addfieldsname = 'updatecategory'; $addstring = get_string('updatecategory', 'qtype_calculated');