mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-15544 Disable email signup in new installation - add danger warning
This commit is contained in:
parent
f8f817b73d
commit
e9180ff830
4 changed files with 22 additions and 11 deletions
|
@ -523,6 +523,8 @@
|
|||
/// check that site is properly customized
|
||||
if (empty($site->shortname)) {
|
||||
// probably new installation - lets return to frontpage after this step
|
||||
// remove settings that we want uninitialised
|
||||
unset_config('registerauth');
|
||||
redirect('upgradesettings.php?return=site');
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,15 @@ if ($data = data_submitted() and confirm_sesskey()) {
|
|||
$adminroot =& admin_get_root(true); //reload tree
|
||||
}
|
||||
|
||||
$newsettingshtml = admin_output_new_settings_by_page($adminroot);
|
||||
$newsettings = admin_output_new_settings_by_page($adminroot);
|
||||
if (isset($newsettings['frontpagesettings'])) {
|
||||
$frontpage = $newsettings['frontpagesettings'];
|
||||
unset($newsettings['frontpagesettings']);
|
||||
array_unshift($newsettings, $frontpage);
|
||||
}
|
||||
$newsettingshtml = implode($newsettings);
|
||||
unset($newsettings);
|
||||
|
||||
$focus = '';
|
||||
|
||||
if (empty($adminroot->errors) and $newsettingshtml === '') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue