MDL-23590 ask for site names right after editing admin account during first login after cli install

This commit is contained in:
Petr Skoda
2010-07-30 14:47:15 +00:00
parent 91eb6730f0
commit 79efabd49c
+5
View File
@@ -238,6 +238,11 @@ if ($usernew = $userform->get_data()) {
profile_load_custom_fields($USER);
}
if (is_siteadmin() and empty($SITE->shortname)) {
// fresh cli install - we need to finish site settings
redirect(new moodle_url('/admin/index.php'));
}
if (!$email_changed || !$CFG->emailchangeconfirmation) {
redirect("$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id");
}