]> git.mjollnir.org Git - moodle.git/commitdiff
Added some docs
authormoodler <moodler>
Tue, 19 Sep 2006 16:38:53 +0000 (16:38 +0000)
committermoodler <moodler>
Tue, 19 Sep 2006 16:38:53 +0000 (16:38 +0000)
enrol/database/enrol.php
enrol/database/enrol_database_sync.php

index 55d4b54a31a456943893dc68fa06b6cae9c1c673..046fa308c6e231d8e0e825c416db73029b3b52a0 100644 (file)
@@ -95,6 +95,9 @@ function setup_enrolments(&$user) {
 /// sync enrolments with database, create courses if required.
 ///
 /// NOTE: we are currently  ignoring $type, as enrol/database only deasl with student enrolment
+///
+/// This function still needs to be converted to Roles!   XXX TODO
+///
 function sync_enrolments($type='student') {
     global $CFG;
     global $db;
index a3dc7b2af239dc1aed9780b03ac3844fa45700b5..3de63b991249f914cc26001ceca490f762b4310d 100644 (file)
@@ -9,8 +9,6 @@
     require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); // global moodle config file.
 
     require_once($CFG->dirroot . '/course/lib.php');
-    require_once($CFG->dirroot . '/lib/moodlelib.php');
-    require_once($CFG->dirroot . '/lib/datalib.php');
     require_once($CFG->dirroot . "/enrol/" . $CFG->enrol . "/enrol.php");
 
     // ensure errors are well explained