mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 10:18:06 +02:00
Issue #38 - Ensuring we always have default values for plugin config.
This commit is contained in:
1 parent
f569157368
commit
671e7d5f67
5 files changed
+60
-34
No files matched your search
+2
-1
@@ -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