mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Adding check for use of ip restrictions before warning (#134)
* Adding check for use of ip restrictions before warning about bootstrap.php not being included in config.php * Replacing reference to same class with self
This commit is contained in:
committed by
Dan Marsden
parent
b3917b7b63
commit
5aaf0ddeda
@@ -330,7 +330,7 @@ EOT;
|
||||
|
||||
$message = [];
|
||||
|
||||
if (!isset($CFG->auth_outage_bootstrap_loaded) || !$CFG->auth_outage_bootstrap_loaded) {
|
||||
if (trim(self::get_config()->allowedips) != '' && (!isset($CFG->auth_outage_bootstrap_loaded) || !$CFG->auth_outage_bootstrap_loaded)) {
|
||||
$message[] = get_string('configurationwarning', 'auth_outage');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user