MDL-15544 Disable email signup in new installation - add danger warning

This commit is contained in:
skodak 2008-07-04 23:53:13 +00:00
parent f8f817b73d
commit e9180ff830
4 changed files with 22 additions and 11 deletions

View file

@ -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');
}

View file

@ -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 === '') {