aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/thewire/index.php')
-rw-r--r--mod/thewire/index.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/mod/thewire/index.php b/mod/thewire/index.php
index 2514d7452..078e93271 100644
--- a/mod/thewire/index.php
+++ b/mod/thewire/index.php
@@ -21,16 +21,20 @@
}
// title
- $area2 = elgg_view_title(elgg_echo("thewire:read"));
+ if (page_owner() == $_SESSION['guid']) {
+ $area2 = elgg_view_title(elgg_echo("thewire:read"));
+ } else {
+ $area2 = elgg_view_title(sprintf(elgg_echo("thewire:user"),$page_owner->name));
+ }
//add form
$area2 .= elgg_view("thewire/forms/add");
// Display the user's wire
- $area2 .= list_user_objects($page_owner->getGUID(),'thewire'); // elgg_view("thewire/view",array('entity' => $thewire));
-
+ $area2 .= list_user_objects($page_owner->getGUID(),'thewire');
+
//select the correct canvas area
- $body = elgg_view_layout("two_column_left_sidebar", '', $area2);
+ $body = elgg_view_layout("one_column_with_sidebar", '', $area2);
// Display page
page_draw(sprintf(elgg_echo('thewire:user'),$page_owner->name),$body);