diff options
Diffstat (limited to 'views/default/page/elements/owner_block.php')
-rw-r--r-- | views/default/page/elements/owner_block.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/default/page/elements/owner_block.php b/views/default/page/elements/owner_block.php index cee13ebff..fc7f0f6d2 100644 --- a/views/default/page/elements/owner_block.php +++ b/views/default/page/elements/owner_block.php @@ -12,11 +12,12 @@ elgg_push_context('owner_block'); // groups and other users get owner block $owner = elgg_get_page_owner_entity(); -if ($owner instanceof ElggGroup || $owner instanceof ElggUser) { +if ($owner instanceof ElggGroup || + ($owner instanceof ElggUser && $owner->getGUID() != elgg_get_logged_in_user_guid())) { - $header = elgg_view_entity_icon($owner, 'large'); + $header = elgg_view_entity($owner, array('full_view' => false)); - $body = elgg_view_menu('owner_block', array('entity' => $owner, 'sort_by' => 'priority')); + $body = elgg_view_menu('owner_block', array('entity' => $owner)); $body .= elgg_view('page/elements/owner_block/extend', $vars); |