Skip to content

Commit

Permalink
MDL-23590 ask for site names right after editing admin account during…
Browse files Browse the repository at this point in the history
… first login after cli install
  • Loading branch information
skodak committed Jul 30, 2010
1 parent 91eb673 commit 79efabd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions user/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@
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");
}
Expand Down

0 comments on commit 79efabd

Please sign in to comment.