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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user