fixed error message when empty site full or short name - moved $SITE reinitialisation into setting method

This commit is contained in:
skodak
2006-10-16 07:52:52 +00:00
parent b5a814308a
commit 7f5f0ae62b
2 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -78,8 +78,7 @@ if ($data = data_submitted()) {
} else {
error(get_string('confirmsesskeybad', 'error'));
}
//reload site
$SITE = get_record('course', 'id', $SITE->id);
//update $COURSE to match changed $SITE
$COURSE = clone($SITE);
}