From: moodler Date: Sun, 30 Jan 2005 09:09:44 +0000 (+0000) Subject: Flatfile now stores itself in the enrolment type field X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cabe3b1b2360b687f9514e7e829e0d9c8ba07489;p=moodle.git Flatfile now stores itself in the enrolment type field --- diff --git a/enrol/flatfile/enrol.php b/enrol/flatfile/enrol.php index 62f5820486..df57dbc34c 100644 --- a/enrol/flatfile/enrol.php +++ b/enrol/flatfile/enrol.php @@ -179,7 +179,7 @@ function process_config($config) { switch ($fields[1]) { case "student": if ($fields[0] == "add") { - if (! enrol_student($user->id, $course->id, $fields[4], $fields[5])) { + if (! enrol_student($user->id, $course->id, $fields[4], $fields[5], 'flatfile')) { $elog = "Error enrolling in course\n"; } } else { @@ -191,7 +191,7 @@ function process_config($config) { case "teacher": if ($fields[0] == "add") { - if (! add_teacher($user->id, $course->id, 0, '', $fields[4], $fields[5])) { + if (! add_teacher($user->id, $course->id, 0, '', $fields[4], $fields[5], 'flatfile')) { $elog = "Error adding teacher to course\n"; } } else { @@ -203,7 +203,7 @@ function process_config($config) { case "teacheredit": if ($fields[0] == "add") { - if (! add_teacher($user->id, $course->id, 1, '', $fields[4], $fields[5])) { + if (! add_teacher($user->id, $course->id, 1, '', $fields[4], $fields[5], 'flatfile')) { $elog = "Error adding teacher to course\n"; } } else {