From 9ddc1cd32cde4eb1215f1f68b9106221d3728693 Mon Sep 17 00:00:00 2001 From: Daniel Thee Roperto Date: Wed, 14 Dec 2016 11:52:40 +1100 Subject: [PATCH] Issue #87 - Using 'notifyerror' instead of the wrong type 'notifyfailure'. --- classes/local/outagelib.php | 2 +- settings.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/local/outagelib.php b/classes/local/outagelib.php index fc470a0..5dcf77d 100644 --- a/classes/local/outagelib.php +++ b/classes/local/outagelib.php @@ -323,7 +323,7 @@ EOT; if (CLI_SCRIPT) { $message = html_to_text(implode("; ", $message)); } else { - $message = $OUTPUT->notification(implode("
", $message), 'notifyfailure'); + $message = $OUTPUT->notification(implode("
", $message), 'notifyerror'); } return $message; diff --git a/settings.php b/settings.php index b15e775..9c3be2c 100644 --- a/settings.php +++ b/settings.php @@ -98,7 +98,7 @@ if ($hassiteconfig && is_enabled_auth('outage')) { $type = 'notifysuccess'; } else { $message = 'allowedipshasntmyip'; - $type = 'notifyfailure'; + $type = 'notifyerror'; }; $description .= $OUTPUT->notification(get_string($message, 'auth_outage', ['ip' => getremoteaddr()]), $type);