From fb48ea92032d56347d75baf77adc4a410bd38b31 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 1 Aug 2008 10:49:42 +0000 Subject: Introducing the consistent owner block git-svn-id: https://code.elgg.org/elgg/trunk@1644 36083f99-b078-4883-b0ff-0f9b5a30f544 --- entities/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'entities') diff --git a/entities/index.php b/entities/index.php index 96da8b790..3e573b338 100644 --- a/entities/index.php +++ b/entities/index.php @@ -27,10 +27,16 @@ // Get the entity, if possible if ($entity = get_entity($guid)) { + if ($entity->container_guid) { + set_page_owner($entity->container_guid); + } else { + set_page_owner($entity->owner_guid); + } + // Set the body to be the full view of the entity, and the title to be its title $area2 = elgg_view_entity($entity,true); if ($shell) - $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2); + $body = elgg_view_layout('two_column_left_sidebar', '', $area1 . $area2); // Otherwise? } else { -- cgit v1.2.3