Added warnings in case plugin is not properly configured.

This commit is contained in:
Daniel Thee Roperto
2016-11-14 15:02:30 +11:00
parent 739c92e94e
commit 3360d357d4
10 changed files with 53 additions and 14 deletions

View File

@@ -89,10 +89,7 @@ if ($hassiteconfig && is_enabled_auth('outage')) {
// Create 'Allowed IPs' settings.
$allowedips = outagelib::get_config()->allowedips;
$description = '';
if (!isset($CFG->auth_outage_check) || !$CFG->auth_outage_check) {
$description .= $OUTPUT->notification(get_string('allowedipsnoconfig', 'auth_outage'), 'notifyfailure');
}
$description = outagelib::generate_plugin_configuration_warning();
if (trim($allowedips) == '') {
$message = 'allowedipsempty';
$type = 'notifymessage';