Issue #22 - Created bootstrap.php to intercept the execution before Moodle finished loading.

This commit is contained in:
Daniel Thee Roperto
2016-11-09 16:56:04 +11:00
parent ce2da24b1b
commit 5db5bed914
6 changed files with 98 additions and 51 deletions

View File

@@ -86,7 +86,7 @@ if ($hassiteconfig && is_enabled_auth('outage')) {
$allowedips = outagelib::get_config()->allowedips;
$description = '';
if (!isset($CFG->auth_outage_check) || !$CFG->auth_outage_check) {
if (!isset($CFG->auth_outage_check) || ($CFG->auth_outage_check != 2)) {
$description .= $OUTPUT->notification(get_string('allowedipsnoconfig', 'auth_outage'), 'notifyfailure');
}