Fixing profileurl link. It must be $USER->id.

This commit is contained in:
ethem 2005-05-17 07:08:04 +00:00
parent 3b32704597
commit 105e7da4c9

View File

@ -218,7 +218,7 @@ function cc_submit($form, $course)
$teacher = get_teacher($course->id);
if (!empty($CFG->enrol_mailstudents)) {
$a->coursename = "$course->fullname";
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id";
$a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id";
email_to_user($USER, $teacher, get_string("enrolmentnew", '', $course->shortname),
get_string('welcometocoursetext', '', $a));
}