mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Ensure that $CFG->siteidentifier is always defined (32-byte key)
This commit is contained in:
parent
9ef2b3f3aa
commit
a61b898a30
@ -252,6 +252,11 @@
|
||||
redirect("site.php");
|
||||
}
|
||||
|
||||
/// Define the unique site ID code if it isn't already
|
||||
if (empty($CFG->siteidentifier)) { // Unique site identification code
|
||||
set_config('siteidentifier', random_string(32));
|
||||
}
|
||||
|
||||
/// Set up the admin user
|
||||
if (! record_exists("user_admins")) { // No admin user yet
|
||||
redirect("user.php");
|
||||
|
Loading…
x
Reference in New Issue
Block a user