MDL-45607 events: changed the context passed to the user_profile_viewed event
This commit is contained in:
committed by
Sam Hemelryk
parent
11b5d9b763
commit
8a0dcb91cc
+2
-1
@@ -192,7 +192,8 @@ if ($user->deleted) {
|
||||
$event = \core\event\user_profile_viewed::create(array(
|
||||
'objectid' => $USER->id,
|
||||
'relateduserid' => $user->id,
|
||||
'context' => $usercontext,
|
||||
'courseid' => $course->id,
|
||||
'context' => $coursecontext,
|
||||
'other' => array(
|
||||
'courseid' => $course->id,
|
||||
'courseshortname' => $course->shortname,
|
||||
|
||||
Reference in New Issue
Block a user