projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29fffed
)
Fix incorrect class namespacing.
author
Dan Marsden
<dan@danmarsden.com>
Thu, 29 Jun 2017 09:07:59 +0000
(21:07 +1200)
committer
Dan Marsden
<dan@danmarsden.com>
Thu, 29 Jun 2017 09:07:59 +0000
(21:07 +1200)
classes/task/notify.php
patch
|
blob
|
history
diff --git
a/classes/task/notify.php
b/classes/task/notify.php
index
115779b
..
0c9f80f
100644
(file)
--- 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)) {