mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #38 - Ensuring we always have default values for plugin config.
This commit is contained in:
2
new.php
2
new.php
@@ -41,7 +41,7 @@ if ($mform->is_cancelled()) {
|
||||
redirect('/auth/outage/manage.php#auth_outage_id_' . $id);
|
||||
}
|
||||
|
||||
$config = get_config('auth_outage');
|
||||
$config = outagelib::get_config();
|
||||
$defaults = new outage([
|
||||
'starttime' => time(),
|
||||
'stoptime' => time() + ($config->default_duration * 60),
|
||||
|
||||
Reference in New Issue
Block a user