MDL-59528 user: Render user picture link with user's fullname
authorJun Pataleta <jun@moodle.com>
Tue, 18 Jul 2017 09:13:01 +0000 (17:13 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 21 Jul 2017 00:45:31 +0000 (08:45 +0800)
user/classes/participants_table.php

index 2def8e5..f838253 100644 (file)
@@ -206,7 +206,7 @@ class participants_table extends \table_sql {
     public function col_fullname($data) {
         global $OUTPUT;
 
-        return $OUTPUT->user_picture($data, array('size' => 35, 'courseid' => $this->course->id)) . ' ' . fullname($data);
+        return $OUTPUT->user_picture($data, array('size' => 35, 'courseid' => $this->course->id, 'includefullname' => true));
     }
 
     /**