moodlelib/welcome message: MDL-16947 use the userid that was passed in for the profile URL
This commit is contained in:
+1
-1
@@ -4565,7 +4565,7 @@ function email_welcome_message_to_user($course, $user=NULL) {
|
||||
} else {
|
||||
$a = new Object();
|
||||
$a->coursename = $course->fullname;
|
||||
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id";
|
||||
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id";
|
||||
$message = get_string("welcometocoursetext", "", $a);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user