Make $COURSE a full object for later use

This commit is contained in:
moodler
2006-05-29 07:31:22 +00:00
parent 3eabd4cf97
commit 45fc1f759e
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ global $HTTPSPAGEREQUIRED;
define('COURSEID', 1);
}
/// And the 'default' course
$COURSE->id = SITEID; // For now. This will usually get reset later in require_login() etc.
$COURSE = clone($SITE); // For now. This will usually get reset later in require_login() etc.
/// Set a default enrolment configuration (see bug 1598)