mirror of
https://github.com/moodle/moodle.git
synced 2025-04-28 11:55:58 +02:00
Put back call to forum_add_student in enrol_student() that Martin took out by mistake in revision 1.355
This commit is contained in:
parent
4b5865662d
commit
2f3b54ae54
@ -1482,6 +1482,9 @@ function enrol_student($userid, $courseid, $timestart=0, $timeend=0) {
|
||||
return update_record('user_students', $student);
|
||||
|
||||
} else {
|
||||
require_once("../mod/forum/lib.php");
|
||||
forum_add_user($userid, $courseid);
|
||||
|
||||
$student->userid = $userid;
|
||||
$student->course = $courseid;
|
||||
$student->timestart = $timestart;
|
||||
|
Loading…
x
Reference in New Issue
Block a user