Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91eb673
)
MDL-23590 ask for site names right after editing admin account during first login...
author
Petr Skoda
<skodak@moodle.org>
Fri, 30 Jul 2010 14:47:15 +0000
(14:47 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Fri, 30 Jul 2010 14:47:15 +0000
(14:47 +0000)
user/edit.php
patch
|
blob
|
blame
|
history
diff --git
a/user/edit.php
b/user/edit.php
index
b609ffd
..
1527197
100644
(file)
--- a/
user/edit.php
+++ b/
user/edit.php
@@
-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");
}