mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-81190 mod_assign: correct context argument to format string.
This commit is contained in:
parent
38a3310c92
commit
e2de6e4584
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user