mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Fixing profileurl link. It must be $USER->id.
This commit is contained in:
parent
3b32704597
commit
105e7da4c9
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user