Ticket #3312: 3312.diff
| File 3312.diff, 868 bytes (added by , 15 years ago) |
|---|
-
bp-groups/bp-groups-loader.php
class BP_Groups_Component extends BP_Component { 94 94 if ( bp_is_groups_component() && $group_id = BP_Groups_Group::group_exists( bp_current_action() ) ) { 95 95 96 96 $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 ) ); 98 101 99 102 // When in a single group, the first action is bumped down one because of the 100 103 // group name, so we need to adjust this and set the group name to current_item.