]> git.mjollnir.org Git - moodle.git/commitdiff
Put back call to forum_add_student in enrol_student() that Martin took out by mistake...
authorgustav_delius <gustav_delius>
Tue, 26 Oct 2004 19:53:48 +0000 (19:53 +0000)
committergustav_delius <gustav_delius>
Tue, 26 Oct 2004 19:53:48 +0000 (19:53 +0000)
lib/moodlelib.php

index ee32f9b81f2825d0f5aaf49b98f29da7c7bc679a..4792523e26c687c717fae7452bf71fc21db86ad9 100644 (file)
@@ -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;