mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #38 - Ensuring we always have default values for plugin config.
This commit is contained in:
@@ -25,13 +25,14 @@
|
||||
|
||||
use auth_outage\cli\cliexception;
|
||||
use auth_outage\cli\create;
|
||||
use auth_outage\outagelib;
|
||||
|
||||
define('CLI_SCRIPT', true);
|
||||
require('../../config.php');
|
||||
|
||||
$cli = new create();
|
||||
|
||||
$config = get_config('auth_outage');
|
||||
$config = outagelib::get_config();
|
||||
$cli->set_defaults([
|
||||
'help' => false,
|
||||
'warn' => (int)($config->warning_duration),
|
||||
|
||||
Reference in New Issue
Block a user