From 23cc1afd2c7392a3bf58db001ffc487a7a2108ee Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 17 Feb 2011 04:01:15 +0000 Subject: Hiding the filter tabs for bookmarks when not in a filter context. git-svn-id: http://code.elgg.org/elgg/trunk@8271 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/pages/owner.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/bookmarks/pages/owner.php b/mod/bookmarks/pages/owner.php index c11d6628e..72843f9f0 100644 --- a/mod/bookmarks/pages/owner.php +++ b/mod/bookmarks/pages/owner.php @@ -34,10 +34,17 @@ if ($page_owner->getGUID() == elgg_get_logged_in_user_guid()) { $filter_context = 'mine'; } -$body = elgg_view_layout('content', array( +$vars = array( 'filter_context' => $filter_context, 'content' => $content, 'title' => $title -)); +); + +// don't show filter if out of filter context +if ($page_owner instanceof ElggGroup) { + $vars['filter'] = false; +} + +$body = elgg_view_layout('content', $vars); echo elgg_view_page($title, $body); \ No newline at end of file -- cgit v1.2.3