Changeset 2471 for trunk/bp-groups.php
- Timestamp:
- 01/28/2010 06:01:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2465 r2471 107 107 108 108 function groups_check_installed() { 109 global $wpdb, $bp;110 111 109 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 112 110 if ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) … … 116 114 117 115 function groups_setup_nav() { 118 global $bp , $current_blog, $group_obj;116 global $bp; 119 117 120 118 if ( $group_id = BP_Groups_Group::group_exists($bp->current_action) ) { … … 139 137 /* Should this group be visible to the logged in user? */ 140 138 $bp->groups->current_group->is_group_visible_to_member = ( 'public' == $bp->groups->current_group->status || $is_member ) ? true : false; 141 142 /* Pre 1.1 backwards compatibility - use $bp->groups->current_group instead */143 $group_obj = &$bp->groups->current_group;144 139 } 145 140 … … 667 662 global $bp; 668 663 669 if ( !$bp->is_single_item || $bp->current_component != $bp->groups->slug || $bp->current_action != $bp->activity->slug ) 670 return false; 664 if ( $bp->current_component != $bp->groups->slug || $bp->current_action != $bp->activity->slug || empty( $bp->action_variables[0] ) ) 665 return false; 666 667 $bp->is_single_item = true; 671 668 672 669 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) ); … … 1244 1241 return false; 1245 1242 1246 foreach ( $bp->groups->group_creation_steps as $slug => $step ) 1243 foreach ( $bp->groups->group_creation_steps as $slug => $step ) { 1244 while ( !empty( $temp[$step['position']] ) ) 1245 $step['position']++; 1246 1247 1247 $temp[$step['position']] = array( 'name' => $step['name'], 'slug' => $slug ); 1248 } 1248 1249 1249 1250 /* Sort the steps by their position key */
Note: See TracChangeset
for help on using the changeset viewer.