MDL-81190 mod_assign: correct context argument to format string.

This commit is contained in:
Paul Holden 2024-03-11 16:56:32 +00:00
parent 38a3310c92
commit e2de6e4584
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -478,7 +478,7 @@ class renderer extends \plugin_renderer_base {
if ($status->teamsubmissionenabled) {
$group = $status->submissiongroup;
if ($group) {
$team = format_string($group->name, false, $status->context);
$team = format_string($group->name, false, ['context' => $status->context]);
} else if ($status->preventsubmissionnotingroup) {
if (count($status->usergroups) == 0) {
$team = '<span class="alert alert-error">' . get_string('noteam', 'assign') . '</span>';