mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-49499-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
522eff0d30
7 changed files with 189 additions and 21 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue