mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
Merge branch 'MDL-78018' of https://github.com/paulholden/moodle
This commit is contained in:
commit
42c7c56c9f
@ -176,7 +176,7 @@ class downloader {
|
||||
if ($this->instance->teamsubmission) {
|
||||
$submissiongroup = $manager->get_submission_group($student->id);
|
||||
if ($submissiongroup) {
|
||||
$groupname = $submissiongroup->name;
|
||||
$groupname = format_string($submissiongroup->name, true, ['context' => $manager->get_context()]);
|
||||
$groupinfo = '_' . $submissiongroup->id;
|
||||
} else {
|
||||
$groupname = get_string('defaultteam', 'mod_assign');
|
||||
@ -280,7 +280,7 @@ class downloader {
|
||||
$this->instance->name,
|
||||
];
|
||||
if (!empty($this->groupid)) {
|
||||
$filenameparts[] = groups_get_group_name($this->groupid);
|
||||
$filenameparts[] = format_string(groups_get_group_name($this->groupid), true, ['context' => $manager->get_context()]);
|
||||
}
|
||||
$filenameparts[] = $manager->get_course_module()->id;
|
||||
|
||||
|
@ -791,7 +791,7 @@ class assign_grading_table extends table_sql implements renderable {
|
||||
$group = false;
|
||||
$this->get_group_and_submission($row->id, $group, $submission, -1);
|
||||
if ($group) {
|
||||
return $group->name;
|
||||
return format_string($group->name, true, ['context' => $this->assignment->get_context()]);
|
||||
} else if ($this->assignment->get_instance()->preventsubmissionnotingroup) {
|
||||
$usergroups = $this->assignment->get_all_groups($row->id);
|
||||
if (count($usergroups) > 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user