diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-01 10:49:42 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-01 10:49:42 +0000 |
commit | fb48ea92032d56347d75baf77adc4a410bd38b31 (patch) | |
tree | be60e6ff49ab8bc07dc2ee13cd32672e8a18723d /entities | |
parent | 80e56eb63923b56315b4c3fa2f69301e017155d1 (diff) | |
download | elgg-fb48ea92032d56347d75baf77adc4a410bd38b31.tar.gz elgg-fb48ea92032d56347d75baf77adc4a410bd38b31.tar.bz2 |
Introducing the consistent owner block
git-svn-id: https://code.elgg.org/elgg/trunk@1644 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'entities')
-rw-r--r-- | entities/index.php | 8 |
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 {
|