Changeset 5181
- Timestamp:
- 09/24/2011 02:52:23 AM (13 years ago)
- Location:
- branches/1.5/bp-groups
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-groups/bp-groups-loader.php
r5052 r5181 216 216 217 217 // Auto join group when non group member performs group activity 218 $this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ;218 $this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) && BP_DISABLE_AUTO_GROUP_JOIN ? false : true; 219 219 } 220 220 -
branches/1.5/bp-groups/bp-groups-screens.php
r5052 r5181 141 141 142 142 // Auto join this user if they are not yet a member of this group 143 if ( $bp->groups->auto_join&& !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )143 if ( bp_groups_auto_join() && !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) 144 144 groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id ); 145 145 … … 338 338 $error_message = __( "You have been banned from this group.", 'buddypress' ); 339 339 340 } elseif ( $bp->groups->auto_join&& !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {340 } elseif ( bp_groups_auto_join() && !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) { 341 341 // Auto join this user if they are not yet a member of this group 342 342 groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id );
Note: See TracChangeset
for help on using the changeset viewer.