diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 04:01:15 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 04:01:15 +0000 |
commit | 23cc1afd2c7392a3bf58db001ffc487a7a2108ee (patch) | |
tree | 029de8a6674817d4f47ca4ed8277100ec61c2137 | |
parent | 49771e949c286e435380b55a2e2cac18b9021507 (diff) | |
download | elgg-23cc1afd2c7392a3bf58db001ffc487a7a2108ee.tar.gz elgg-23cc1afd2c7392a3bf58db001ffc487a7a2108ee.tar.bz2 |
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
-rw-r--r-- | mod/bookmarks/pages/owner.php | 11 |
1 files changed, 9 insertions, 2 deletions
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 |