aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/lib/groups.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-23 20:43:48 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-23 20:43:48 -0500
commita9394e1035147e3910b2dc3cf156b0361ea791cc (patch)
treee62e8684b4e5b8f451b27043b00aeced5a9447c0 /mod/groups/lib/groups.php
parent2c4e77c49fc43add737daaa76aef710de8d01d30 (diff)
downloadelgg-a9394e1035147e3910b2dc3cf156b0361ea791cc.tar.gz
elgg-a9394e1035147e3910b2dc3cf156b0361ea791cc.tar.bz2
Fixes #2074 adds group search
Diffstat (limited to 'mod/groups/lib/groups.php')
-rw-r--r--mod/groups/lib/groups.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index 7798e5dc3..5d6083077 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -234,6 +234,8 @@ function groups_handle_invitations_page() {
function groups_handle_profile_page($guid) {
elgg_set_page_owner_guid($guid);
+ elgg_push_context('group_profile');
+
// turn this into a core function
global $autofeed;
$autofeed = true;
@@ -247,7 +249,11 @@ function groups_handle_profile_page($guid) {
$content = elgg_view('groups/profile/layout', array('entity' => $group));
if (group_gatekeeper(false)) {
- $sidebar = elgg_view('groups/sidebar/members', array('entity' => $group));
+ $sidebar = '';
+ if (elgg_is_active_plugin('search')) {
+ $sidebar .= elgg_view('groups/sidebar/search', array('entity' => $group));
+ }
+ $sidebar .= elgg_view('groups/sidebar/members', array('entity' => $group));
} else {
$sidebar = '';
}