Changeset 6097 for trunk/bp-groups/bp-groups-activity.php
- Timestamp:
- 06/14/2012 06:33:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-activity.php
r6093 r6097 35 35 return false; 36 36 37 // If the group is not public, hide the activity sitewide. 38 if ( isset( $bp->groups->current_group->status ) && 'public' == $bp->groups->current_group->status ) 39 $hide_sitewide = false; 40 else 41 $hide_sitewide = true; 37 // Set the default for hide_sitewide by checking the status of the group 38 $hide_sitewide = false; 39 if ( !empty( $args['item_id'] ) ) { 40 if ( bp_get_current_group_id() == $args['item_id'] ) { 41 $group = groups_get_current_group(); 42 } else { 43 $group = groups_get_group( array( 'group_id' => $args['item_id'] ) ); 44 } 45 46 if ( isset( $group->status ) && 'public' != $group->status ) { 47 $hide_sitewide = true; 48 } 49 } 42 50 43 51 $defaults = array (
Note: See TracChangeset
for help on using the changeset viewer.