Skip to:
Content

BuddyPress.org

Ticket #3312: 3312.diff

File 3312.diff, 868 bytes (added by boonebgorges, 11 years ago)
  • bp-groups/bp-groups-loader.php

    class BP_Groups_Component extends BP_Component { 
    9494                if ( bp_is_groups_component() && $group_id = BP_Groups_Group::group_exists( bp_current_action() ) ) {
    9595
    9696                        $bp->is_single_item  = true;
    97                         $this->current_group = new BP_Groups_Group( $group_id );
     97                       
     98                        $current_group_class = apply_filters( 'bp_groups_current_group_class', 'BP_Groups_Group' );
     99                       
     100                        $this->current_group = apply_filters( 'bp_groups_current_group_object', new $current_group_class( $group_id ) );
    98101
    99102                        // When in a single group, the first action is bumped down one because of the
    100103                        // group name, so we need to adjust this and set the group name to current_item.