From 9b01e91d638177d97d5173d5bb17235951677a6e Mon Sep 17 00:00:00 2001
From: nomisge <nomisge@live.de>
Date: Sat, 12 Oct 2024 11:27:41 +0200
Subject: [PATCH] Remove deprecated constant in moodle 4.5

Update messages.php
Replace deprecated MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF with MESSAGE_DEFAULT_ENABLED
---
 db/messages.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/messages.php b/db/messages.php
index f9c94b8..511da13 100644
--- a/db/messages.php
+++ b/db/messages.php
@@ -31,7 +31,7 @@ $messageproviders = array (
     'newquestion' => array (
         'capability'  => 'mod/pdfannotator:recievenewquestionnotifications', // All capabilities.
         'defaults' => array(
-            'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
+            'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_ENABLED,
             'email' => MESSAGE_PERMITTED,
         ),
     ),
-- 
GitLab