Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moodlelib/welcome message: MDL-16947 use the userid that was passed i…

…n for the profile URL
  • Loading branch information...
commit e92cdcdbd9b00e9fad6e82a875501fadb00f6cae 1 parent a0e7eaa
fmarier authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -3829,7 +3829,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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.