Merge branch 'MDL-49499-master' of git://github.com/jleyva/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2015-04-07 17:29:15 +02:00
commit 522eff0d30
7 changed files with 189 additions and 21 deletions

View file

@ -225,13 +225,7 @@ if ($currentpage->userid == 0) {
}
// Trigger a user profile viewed event.
$event = \core\event\user_profile_viewed::create(array(
'objectid' => $user->id,
'relateduserid' => $user->id,
'context' => $usercontext
));
$event->add_record_snapshot('user', $user);
$event->trigger();
profile_view($user, $usercontext);
// TODO WORK OUT WHERE THE NAV BAR IS!
echo $OUTPUT->header();