1 | <?php |
||
2 | |||
3 | $user_guid = elgg_extract('guid', $vars); |
||
4 | elgg_entity_gatekeeper($user_guid, 'user'); |
||
5 | $user = get_user($user_guid); |
||
6 | |||
7 | $title = $user->getDisplayName(); |
||
8 | |||
9 | $params = [ |
||
10 | 'content' => elgg_view_entity($user), |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
11 | 'title' => $title, |
||
12 | 'sidebar' => false, |
||
13 | ]; |
||
14 | $body = elgg_view_layout('default', $params); |
||
15 | |||
16 | echo elgg_view_page($title, $body); |
||
17 |