Skip to content

Commit

Permalink
Removing course=$course->id in profile url. If autologin=true user ca…
Browse files Browse the repository at this point in the history
…n't login...
  • Loading branch information
ethem committed Jun 2, 2005
1 parent 52fbf91 commit 095bd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/authorize/enrol.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function cc_submit($form, $course)
$teacher = get_teacher($course->id); $teacher = get_teacher($course->id);
if (!empty($CFG->enrol_mailstudents)) { if (!empty($CFG->enrol_mailstudents)) {
$a->coursename = "$course->fullname"; $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";
email_to_user($USER, $teacher, get_string("enrolmentnew", '', $course->shortname), email_to_user($USER, $teacher, get_string("enrolmentnew", '', $course->shortname),
get_string('welcometocoursetext', '', $a)); get_string('welcometocoursetext', '', $a));
} }
Expand Down

0 comments on commit 095bd29

Please sign in to comment.