mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
removed foter login link during initial phase of installation
This commit is contained in:
parent
8a66975e84
commit
8743f4f3ec
@ -2600,7 +2600,10 @@ function user_login_string($course=NULL, $user=NULL) {
|
||||
$wwwroot = str_replace('http:','https:',$CFG->wwwroot);
|
||||
}
|
||||
|
||||
if (isset($user->id) and $user->id) {
|
||||
if (empty($course->id)) {
|
||||
// $course->id is not defined during installation
|
||||
return '';
|
||||
} else if (isset($user->id) and $user->id) {
|
||||
$fullname = fullname($user, true);
|
||||
$username = "<a target=\"{$CFG->framename}\" href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname</a>";
|
||||
if (isset($user->username) && $user->username == 'guest') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user