]> git.mjollnir.org Git - moodle.git/commitdiff
Use fullname display for actual name in list
authormoodler <moodler>
Fri, 28 Nov 2003 16:16:59 +0000 (16:16 +0000)
committermoodler <moodler>
Fri, 28 Nov 2003 16:16:59 +0000 (16:16 +0000)
user/index.php

index 0a231c13040758be11ffd1fb599591bbe2b8d922..85d5f084302a6b5476e5bae4bd97482f175d56f3 100644 (file)
@@ -20,6 +20,8 @@
 
     require_login($course->id);
 
+    $isteacher = isteacher($course->id);
+
     add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");
 
     $string->email       = get_string("email");
                 $picture = print_user_picture($student->id, $course->id, $student->picture, false, true);
             }
 
+            $fullname = fullname($student, $isteacher);
+
             $table->data[] = array ($picture,
-                "<b><a href=\"$CFG->wwwroot/user/view.php?id=$student->id&course=$course->id\">$student->firstname $student->lastname</a></b>",
+                "<b><a href=\"$CFG->wwwroot/user/view.php?id=$student->id&course=$course->id\">$fullname</a></b>",
                 "<font size=2>$student->city</font>", 
                 "<font size=2>$student->country</font>",
                 "<font size=2>$lastaccess</font>");