mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-35728' of git://github.com/netspotau/moodle-mod_assign
This commit is contained in:
commit
d26a3d2b6f
1 changed files with 7 additions and 3 deletions
|
@ -1779,16 +1779,20 @@ class assign {
|
|||
if ($this->get_instance()->teamsubmission) {
|
||||
$submission = $this->get_group_submission($userid, 0, false);
|
||||
$submissiongroup = $this->get_submission_group($userid);
|
||||
$groupname = '-' . $submissiongroup->name;
|
||||
if ($submissiongroup) {
|
||||
$groupname = $submissiongroup->name . '-';
|
||||
} else {
|
||||
$groupname = get_string('defaultteam', 'assign') . '-';
|
||||
}
|
||||
} else {
|
||||
$submission = $this->get_user_submission($userid, false);
|
||||
}
|
||||
|
||||
if ($this->is_blind_marking()) {
|
||||
$prefix = clean_filename(str_replace('_', ' ', get_string('participant', 'assign') . $groupname) .
|
||||
$prefix = clean_filename(str_replace('_', ' ', $groupname . get_string('participant', 'assign')) .
|
||||
"_" . $this->get_uniqueid_for_user($userid) . "_");
|
||||
} else {
|
||||
$prefix = clean_filename(str_replace('_', ' ', fullname($student) . $groupname) .
|
||||
$prefix = clean_filename(str_replace('_', ' ', $groupname . fullname($student)) .
|
||||
"_" . $this->get_uniqueid_for_user($userid) . "_");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue