aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/lib
diff options
context:
space:
mode:
authorIsmayil Khayredinov <ismayil.khayredinov@gmail.com>2012-04-05 13:10:02 +0200
committerIsmayil Khayredinov <ismayil.khayredinov@gmail.com>2012-04-05 13:10:02 +0200
commitb4ad258a325ebda8b78641f31b10dbd04fb724ce (patch)
tree0becec714f9257192c5c23fd388d17b11475e0e4 /mod/groups/lib
parentada8737fa50d1aeaa33db8a1c1d740a6da449829 (diff)
downloadelgg-b4ad258a325ebda8b78641f31b10dbd04fb724ce.tar.gz
elgg-b4ad258a325ebda8b78641f31b10dbd04fb724ce.tar.bz2
Fixes #4395: Register group profile title buttons earlier
Diffstat (limited to 'mod/groups/lib')
-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 7798e5dc3..f8ff2d74b 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 = elgg_view('groups/sidebar/members', array('entity' => $group));
@@ -252,8 +254,6 @@ function groups_handle_profile_page($guid) {
$sidebar = '';
}
- groups_register_profile_buttons($group);
-
$params = array(
'content' => $content,
'sidebar' => $sidebar,