From 946cbe7029e4cc4a79b9b0f07e684971886e93fc Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 19 Sep 2006 16:38:53 +0000 Subject: [PATCH] Added some docs --- enrol/database/enrol.php | 3 +++ enrol/database/enrol_database_sync.php | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/enrol/database/enrol.php b/enrol/database/enrol.php index 55d4b54a31a..046fa308c6e 100644 --- a/enrol/database/enrol.php +++ b/enrol/database/enrol.php @@ -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; diff --git a/enrol/database/enrol_database_sync.php b/enrol/database/enrol_database_sync.php index a3dc7b2af23..3de63b99124 100644 --- a/enrol/database/enrol_database_sync.php +++ b/enrol/database/enrol_database_sync.php @@ -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