From df99b8842100c0d7a19b1cb26bf59891b9c52cc8 Mon Sep 17 00:00:00 2001 From: Stephan Robotta Date: Thu, 8 Aug 2024 10:48:46 +0200 Subject: [PATCH] Remove deprecated definitions and function for 4.5 compatibility --- db/messages.php | 2 +- lib.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/messages.php b/db/messages.php index f9c94b8..556fae6 100644 --- a/db/messages.php +++ b/db/messages.php @@ -31,7 +31,7 @@ 'newquestion' => array ( 'capability' => 'mod/pdfannotator:recievenewquestionnotifications', // All capabilities. 'defaults' => array( - 'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF, + 'popup' => MESSAGE_PERMITTED, 'email' => MESSAGE_PERMITTED, ), ), diff --git a/lib.php b/lib.php index 1353c40..51c50b0 100644 --- a/lib.php +++ b/lib.php @@ -76,6 +76,7 @@ function pdfannotator_supports($feature) { function pdfannotator_get_extra_capabilities() { return array('moodle/site:accessallgroups'); } + /** * This function is used by the reset_course_userdata function in moodlelib. * @param $data the data submitted from the reset course.