diff --git a/course/user.php b/course/user.php index eaae9b3db26..692a0ce4975 100644 --- a/course/user.php +++ b/course/user.php @@ -36,19 +36,20 @@ $stralllogs = get_string("alllogs"); $strtodaylogs = get_string("todaylogs"); $strmode = get_string($mode); + $fullname = fullname($user, true); if ($course->category) { print_header("$course->shortname: $stractivityreport ($mode)", "$course->fullname", "id\">$course->shortname -> id\">$strparticipants -> - id&course=$course->id\">$user->firstname $user->lastname -> + id&course=$course->id\">$fullname -> $stractivityreport -> $strmode"); } else { print_header("$course->shortname: $stractivityreport ($mode)", "$course->fullname", - "id&course=$course->id\">$user->firstname $user->lastname -> + "id&course=$course->id\">$fullname -> $stractivityreport -> $strmode"); } - print_heading("$user->firstname $user->lastname"); + print_heading($fullname); echo "
| $stractivityreport: | "; diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index f79fba49b24..8a8e666d94f 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -140,7 +140,7 @@ function assignment_cron () { } if (! isstudent($course->id, $user->id) and !isteacher($course->id, $user->id)) { - echo "$user->firstname $user->lastname not an active participant in $course->shortname\n"; + echo fullname($user)." not an active participant in $course->shortname\n"; continue; } @@ -158,7 +158,7 @@ function assignment_cron () { $strassignment = get_string("modulename", "assignment"); unset($assignmentinfo); - $assignmentinfo->teacher = "$teacher->firstname $teacher->lastname"; + $assignmentinfo->teacher = fullname($teacher); $assignmentinfo->assignment = "$submission->name"; $assignmentinfo->url = "$CFG->wwwroot/mod/assignment/view.php?id=$mod->id"; @@ -226,7 +226,7 @@ function assignment_print_recent_activity($course, $isteacher, $timestart) { print_headline(get_string("newsubmissions", "assignment").":"); foreach ($assignments as $assignment) { $date = userdate($assignment->time, $strftimerecent); - echo "cellheading\">$user->firstname $user->lastname"; + echo " | cellheading\">".fullname($user, true); if ($assignment->type != OFFLINE and $submission->timemodified) { echo " ".get_string("lastmodified").": "; echo userdate($submission->timemodified); @@ -461,7 +461,7 @@ function assignment_print_feedback($course, $submission) { echo "\n | body\" WIDTH=35 VALIGN=TOP>"; print_user_picture($teacher->id, $course->id, $teacher->picture); echo " | "; - echo "cellheading\">$teacher->firstname $teacher->lastname"; + echo " | cellheading\">".fullname($teacher); echo " ".userdate($submission->timemarked).""; echo " |