From fd69ea78e545c70e1e8ab518e25acebd16712751 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 29 Jun 2017 21:07:59 +1200 Subject: [PATCH] Fix incorrect class namespacing. --- classes/task/notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/task/notify.php b/classes/task/notify.php index 115779b..0c9f80f 100644 --- a/classes/task/notify.php +++ b/classes/task/notify.php @@ -83,7 +83,7 @@ class notify extends \core\task\scheduled_task { if (!empty($record->thirdpartyemails)) { $sendto = explode(',', $record->thirdpartyemails); $record->percent = round($record->percent * 100)."%"; - $context = context_module::instance($record->cmid); + $context = \context_module::instance($record->cmid); foreach ($sendto as $senduser) { // Check user is allowed to receive warningemails. if (has_capability('mod/attendance:warningemails', $context, $senduser)) {