aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/lib/groups.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-19 10:07:28 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-19 10:07:28 -0700
commitb0200823eb63940a23c33257758d2a8dc42ca25a (patch)
tree46779d616e0547abe90ea72cb35eb0f8fc2b2d5c /mod/groups/lib/groups.php
parentb91d8bb0fea5cef9fafea72181a0007cfaa54725 (diff)
parentb4ad258a325ebda8b78641f31b10dbd04fb724ce (diff)
downloadelgg-b0200823eb63940a23c33257758d2a8dc42ca25a.tar.gz
elgg-b0200823eb63940a23c33257758d2a8dc42ca25a.tar.bz2
Merge pull request #183 from hypeJunction/group_title_button
Fixes #4395: Register group profile title buttons earlier - registering menu items before rendering the layout
Diffstat (limited to 'mod/groups/lib/groups.php')
-rw-r--r--mod/groups/lib/groups.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index 2fe9ae8e0..498766df0 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -245,6 +245,8 @@ function groups_handle_profile_page($guid) {
elgg_push_breadcrumb($group->name);
+ groups_register_profile_buttons($group);
+
$content = elgg_view('groups/profile/layout', array('entity' => $group));
if (group_gatekeeper(false)) {
$sidebar = '';
@@ -256,8 +258,6 @@ function groups_handle_profile_page($guid) {
$sidebar = '';
}
- groups_register_profile_buttons($group);
-
$params = array(
'content' => $content,
'sidebar' => $sidebar,