MDL-45607 events: changed the context passed to the user_profile_viewed event

This commit is contained in:
Mark Nelson
2014-05-26 09:54:42 +12:00
committed by Sam Hemelryk
parent 11b5d9b763
commit 8a0dcb91cc
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -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,