]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Merge pull request #183 from hypeJunction/group_title_button
authorCash Costello <cash.costello@gmail.com>
Tue, 19 Jun 2012 17:07:28 +0000 (10:07 -0700)
committerCash Costello <cash.costello@gmail.com>
Tue, 19 Jun 2012 17:07:28 +0000 (10:07 -0700)
Fixes #4395: Register group profile title buttons earlier - registering menu items before rendering the layout

1  2 
mod/groups/lib/groups.php

index 2fe9ae8e07a71aafcfc14bf1f6ebdc2862da6238,f8ff2d74bc3e4a7eb9cdd29c8aa4752c5a9c2023..498766df0a210a0824d609bdbd59f3cbd6163abb
@@@ -245,13 -245,11 +245,15 @@@ function groups_handle_profile_page($gu
  
        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));
 +              $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 = '';
        }