Skip to content

Commit 2b63da7

Browse files
committed
Merge branch 'MDL-65777-37' of git://github.com/mihailges/moodle into MOODLE_37_STABLE
2 parents b59f56c + 24bc582 commit 2b63da7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mod/assign/feedback/file/importzipform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function definition() {
8080
if ($importer->is_valid_filename_for_import($assignment, $unzippedfile, $participants, $user, $plugin, $filename)) {
8181
if ($importer->is_file_modified($assignment, $user, $plugin, $filename, $unzippedfile)) {
8282
// Get a string we can show to identify this user.
83-
$userdesc = fullname($user);
83+
$userdesc = fullname($user, has_capability('moodle/site:viewfullnames', $assignment->get_context()));
8484
$path = pathinfo($filename);
8585
if ($assignment->is_blind_marking()) {
8686
$userdesc = get_string('hiddenuser', 'assign') .

mod/assign/locallib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3517,7 +3517,8 @@ protected function download_submissions($userids = false) {
35173517
$prefix = str_replace('_', ' ', $groupname . get_string('participant', 'assign'));
35183518
$prefix = clean_filename($prefix . '_' . $this->get_uniqueid_for_user($userid));
35193519
} else {
3520-
$prefix = str_replace('_', ' ', $groupname . fullname($student));
3520+
$fullname = fullname($student, has_capability('moodle/site:viewfullnames', $this->get_context()));
3521+
$prefix = str_replace('_', ' ', $groupname . $fullname);
35213522
$prefix = clean_filename($prefix . '_' . $this->get_uniqueid_for_user($userid));
35223523
}
35233524

0 commit comments

Comments
 (0)