mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #46 - Improved behat for default settings.
This commit is contained in:
17
settings.php
17
settings.php
@@ -34,15 +34,7 @@ if ($hassiteconfig && is_enabled_auth('outage')) {
|
||||
'auth_outage/default_autostart',
|
||||
get_string('defaultoutageautostart', 'auth_outage'),
|
||||
get_string('defaultoutageautostartdescription', 'auth_outage'),
|
||||
$defaults['default_autostart'],
|
||||
PARAM_BOOL
|
||||
));
|
||||
$settings->add(new admin_setting_configtext(
|
||||
'auth_outage/default_duration',
|
||||
get_string('defaultoutageduration', 'auth_outage'),
|
||||
get_string('defaultoutagedurationdescription', 'auth_outage'),
|
||||
$defaults['default_duration'],
|
||||
PARAM_INT
|
||||
$defaults['default_autostart']
|
||||
));
|
||||
$settings->add(new admin_setting_configtext(
|
||||
'auth_outage/default_warning_duration',
|
||||
@@ -51,6 +43,13 @@ if ($hassiteconfig && is_enabled_auth('outage')) {
|
||||
$defaults['default_warning_duration'],
|
||||
PARAM_INT
|
||||
));
|
||||
$settings->add(new admin_setting_configtext(
|
||||
'auth_outage/default_duration',
|
||||
get_string('defaultoutageduration', 'auth_outage'),
|
||||
get_string('defaultoutagedurationdescription', 'auth_outage'),
|
||||
$defaults['default_duration'],
|
||||
PARAM_INT
|
||||
));
|
||||
$settings->add(new admin_setting_configtext(
|
||||
'auth_outage/default_warning_title',
|
||||
get_string('defaultwarningtitle', 'auth_outage'),
|
||||
|
||||
Reference in New Issue
Block a user