Merge branch 'wip-MDL-59363-master' of git://github.com/marinaglancy/moodle
[moodle.git] / mod / workshop / lib.php
index 980856f..67197cc 100644 (file)
@@ -1553,7 +1553,8 @@ function workshop_get_file_info($browser, $areas, $course, $cm, $context, $filea
 
         } else {
 
-            $sql = "SELECT s.id, u.lastname, u.firstname
+            $userfields = get_all_user_name_fields(true, 'u');
+            $sql = "SELECT s.id, $userfields
                       FROM {workshop_submissions} s
                       JOIN {user} u ON (s.authorid = u.id)
                      WHERE s.example = 0 AND s.workshopid = ?";