Skip to content

Commit

Permalink
Put back call to forum_add_student in enrol_student() that Martin too…
Browse files Browse the repository at this point in the history
…k out by mistake in revision 1.355
  • Loading branch information
gustav_delius committed Oct 26, 2004
1 parent 4b58656 commit 2f3b54a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/moodlelib.php
Expand Up @@ -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;
Expand Down

0 comments on commit 2f3b54a

Please sign in to comment.