From 6ddca3ef29d6efafed90f3427efc5fcf337b77df Mon Sep 17 00:00:00 2001 From: Michael hughes Date: Fri, 4 Oct 2024 11:00:16 +0100 Subject: [PATCH] MDL-76964: Undefined constant ASSIGN_EVENT_TYPE_DUE --- mod/assign/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/assign/lib.php b/mod/assign/lib.php index dc528d04827f7..3ea5e2b47d0bb 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -1813,6 +1813,9 @@ function mod_assign_get_path_from_pluginfile(string $filearea, array $args) : ar * @return lang_string The event type lang string. */ function mod_assign_core_calendar_get_event_action_string(string $eventtype): string { + global $CFG; + require_once($CFG->dirroot . '/mod/assign/locallib.php'); + $modulename = get_string('modulename', 'assign'); switch ($eventtype) {