Permalink
Browse files

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

…n for the profile URL
  • Loading branch information...
1 parent a0e7eaa commit e92cdcdbd9b00e9fad6e82a875501fadb00f6cae fmarier committed Oct 22, 2008
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);
}

0 comments on commit e92cdcd

Please sign in to comment.