mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Print better loggedin info at the top of the page
This commit is contained in:
parent
8df45f47bd
commit
02e44e7cf4
2 changed files with 10 additions and 4 deletions
|
@ -19,13 +19,15 @@
|
|||
|
||||
add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");
|
||||
|
||||
$loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";
|
||||
|
||||
if ($course->category) {
|
||||
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
|
||||
"<A HREF=../course/view.php?id=$course->id>$course->shortname</A> -> ".
|
||||
get_string("participants"), "");
|
||||
get_string("participants"), "", "", true, " ", $loggedinas);
|
||||
} else {
|
||||
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
|
||||
get_string("participants"), "");
|
||||
get_string("participants"), "", "", true, " ", $loggedinas);
|
||||
}
|
||||
|
||||
$string->email = get_string("email");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue