Browse Source

Remove deprecated calls to notify constants.

MOODLE_33_STABLE
Dan Marsden 7 years ago
parent
commit
5754d1a8b5
  1. 6
      classes/notifyqueue.php

6
classes/notifyqueue.php

@ -52,7 +52,7 @@ class mod_attendance_notifyqueue {
* @param string $message a text with a message * @param string $message a text with a message
*/ */
public static function notify_problem($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 * @param string $message a text with a message
*/ */
public static function notify_message($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 $message a text with a message
* @param string $messagetype one of the \core\output\notification messages ('message', 'suceess' or 'problem') * @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; global $SESSION;
if (!isset($SESSION->mod_attendance_notifyqueue)) { if (!isset($SESSION->mod_attendance_notifyqueue)) {

Loading…
Cancel
Save