'enrol' => 'manual',
'enrol_plugins_enabled' => 'manual',
'guestloginbutton' => 1,
+ 'registerauth' => 'email',
'style' => 'default',
'template' => 'default',
'theme' => 'standardwhite',
// Move the auth plugin settings into the config_plugin table
if ($oldversion < 2007010300) {
+ if ($CFG->auth == 'email') {
+ set_config('registerauth', 'email');
+ } else {
+ set_config('registerauth', '');
+ }
$authplugins = get_list_of_plugins('auth');
foreach ($CFG as $k => $v) {
if (strpos($k, 'auth_') !== 0) {