Merged from HEAD, better definition of $COURSE

This commit is contained in:
moodler
2006-05-29 07:34:55 +00:00
parent 4878c5a6d2
commit baa1209e37
2 changed files with 7 additions and 5 deletions
+1 -2
View File
@@ -230,10 +230,9 @@ global $HTTPSPAGEREQUIRED;
* @ignore
*/
define('SITEID', 1);
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)