From: gustav_delius Date: Tue, 26 Oct 2004 19:53:48 +0000 (+0000) Subject: Put back call to forum_add_student in enrol_student() that Martin took out by mistake... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2f3b54ae54e3e68956a8d684a1b95019cb5cbf39;p=moodle.git Put back call to forum_add_student in enrol_student() that Martin took out by mistake in revision 1.355 --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index ee32f9b81f..4792523e26 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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;