diff --git a/classes/form/export.php b/classes/form/export.php index f8c2d37..d3f51a0 100644 --- a/classes/form/export.php +++ b/classes/form/export.php @@ -124,7 +124,8 @@ class export extends \moodleform { foreach ($customfields as $field) { if ((is_siteadmin($USER) || $field->visible == PROFILE_VISIBLE_ALL) && in_array($field->shortname, explode(',', $adminsetfields))) { - $ident[] =& $mform->createElement('checkbox', $field->shortname, '', $field->name); + $ident[] =& $mform->createElement('checkbox', $field->shortname, '', + format_string($field->name, true, array('context' => $modcontext))); $mform->setType($field->shortname, PARAM_NOTAGS); $checkedfields['ident['. $field->shortname .']'] = true; }