aboutsummaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
Diffstat (limited to 'entities')
-rw-r--r--entities/index.php8
1 files changed, 7 insertions, 1 deletions
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 {