From 5754d1a8b52cc6755e00df817f785df0eb8fc4fe Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 2 Mar 2018 10:35:10 +1300 Subject: [PATCH] Remove deprecated calls to notify constants. --- classes/notifyqueue.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/notifyqueue.php b/classes/notifyqueue.php index 63eee58..26e9069 100644 --- a/classes/notifyqueue.php +++ b/classes/notifyqueue.php @@ -52,7 +52,7 @@ class mod_attendance_notifyqueue { * @param string $message a text with a message */ public static function notify_problem($message) { - self::queue_message($message, \core\output\notification::NOTIFY_PROBLEM); + self::queue_message($message, \core\output\notification::NOTIFY_ERROR); } /** @@ -61,7 +61,7 @@ class mod_attendance_notifyqueue { * @param string $message a text with a message */ public static function notify_message($message) { - self::queue_message($message, \core\output\notification::NOTIFY_MESSAGE); + self::queue_message($message, \core\output\notification::NOTIFY_INFO); } /** @@ -79,7 +79,7 @@ class mod_attendance_notifyqueue { * @param string $message a text with a message * @param string $messagetype one of the \core\output\notification messages ('message', 'suceess' or 'problem') */ - private static function queue_message($message, $messagetype=\core\output\notification::NOTIFY_MESSAGE) { + private static function queue_message($message, $messagetype=\core\output\notification::NOTIFY_INFO) { global $SESSION; if (!isset($SESSION->mod_attendance_notifyqueue)) {