diff --git a/user/index.php b/user/index.php
index eabeed9d13d..f1fc62d8156 100644
--- a/user/index.php
+++ b/user/index.php
@@ -25,63 +25,28 @@
get_string("participants"), "");
}
+ $string->email = get_string("email");
+ $string->location = get_string("location");
+ $string->lastaccess = get_string("lastaccess");
+ $string->activity = get_string("activity");
+ $string->unenrol = get_string("unenrol");
+ $string->loginas = get_string("loginas");
+ $string->fullprofile = get_string("fullprofile");
if ( $teachers = get_course_teachers($course->id)) {
echo "
".$course->teacher."s
";
foreach ($teachers as $teacher) {
- print_user($teacher, $course);
+ print_user($teacher, $course, $string);
}
}
if ($students = get_course_students($course->id)) {
echo "".$course->student."s
";
foreach ($students as $student) {
- print_user($student, $course);
+ print_user($student, $course, $string);
}
}
print_footer($course);
-
-/// FUNCTIONS //////////////////
-
-function print_user($user, $course) {
-
- global $USER, $COUNTRIES;
-
- echo "";
-}
-
?>
diff --git a/user/lib.php b/user/lib.php
index 07eafa7cba0..a6efe6a7c13 100644
--- a/user/lib.php
+++ b/user/lib.php
@@ -45,5 +45,43 @@ function ImageCopyBicubic ($dst_img, $src_img, $dst_x, $dst_y, $src_x, $src_y, $
}
}
+function print_user($user, $course, $string) {
+
+ global $USER, $COUNTRIES;
+
+ echo "";
+}
?>