mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-81190 mod_assign: correct context argument to format string.
This commit is contained in:
parent
58e84e19b2
commit
3de04dae67
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ class renderer extends \plugin_renderer_base {
|
||||||
if ($status->teamsubmissionenabled) {
|
if ($status->teamsubmissionenabled) {
|
||||||
$group = $status->submissiongroup;
|
$group = $status->submissiongroup;
|
||||||
if ($group) {
|
if ($group) {
|
||||||
$team = format_string($group->name, false, $status->context);
|
$team = format_string($group->name, false, ['context' => $status->context]);
|
||||||
} else if ($status->preventsubmissionnotingroup) {
|
} else if ($status->preventsubmissionnotingroup) {
|
||||||
if (count($status->usergroups) == 0) {
|
if (count($status->usergroups) == 0) {
|
||||||
$team = '<span class="alert alert-error">' . get_string('noteam', 'assign') . '</span>';
|
$team = '<span class="alert alert-error">' . get_string('noteam', 'assign') . '</span>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue