reverting moved $SITE reinitialisation into setting method, it was not a good idea after all
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@ if ($data = data_submitted()) {
|
||||
} else {
|
||||
error(get_string('confirmsesskeybad', 'error'));
|
||||
}
|
||||
//update $COURSE to match changed $SITE
|
||||
// now update $SITE - it might have been changed
|
||||
$SITE = get_record('course', 'id', $SITE->id);
|
||||
$COURSE = clone($SITE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user