aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-22 16:36:41 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-22 16:36:41 -0700
commit97ad74c50ebcf60971208ac20daa7990c3d38c69 (patch)
treea0b4d234dd41bd9e7ab24c5fcfd45fba10e00866 /mod/thewire
parent2c324332f33fca688d782b55a51d38a793a18430 (diff)
downloadelgg-97ad74c50ebcf60971208ac20daa7990c3d38c69.tar.gz
elgg-97ad74c50ebcf60971208ac20daa7990c3d38c69.tar.bz2
Fixes #4452. Passing the correct filter context in the wire's owner page.
Diffstat (limited to 'mod/thewire')
-rw-r--r--mod/thewire/pages/thewire/owner.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/thewire/pages/thewire/owner.php b/mod/thewire/pages/thewire/owner.php
index f544aa655..6246c1770 100644
--- a/mod/thewire/pages/thewire/owner.php
+++ b/mod/thewire/pages/thewire/owner.php
@@ -14,10 +14,12 @@ $title = elgg_echo('thewire:user', array($owner->name));
elgg_push_breadcrumb(elgg_echo('thewire'), "thewire/all");
elgg_push_breadcrumb($owner->name);
+$context = '';
if (elgg_get_logged_in_user_guid() == $owner->guid) {
$form_vars = array('class' => 'thewire-form');
$content = elgg_view_form('thewire/add', $form_vars);
$content .= elgg_view('input/urlshortener');
+ $context = 'mine';
}
$content .= elgg_list_entities(array(
@@ -28,7 +30,7 @@ $content .= elgg_list_entities(array(
));
$body = elgg_view_layout('content', array(
- 'filter_context' => 'mine',
+ 'filter_context' => $context,
'content' => $content,
'title' => $title,
'sidebar' => elgg_view('thewire/sidebar'),