Changeset 5758 for trunk/bp-groups/bp-groups-loader.php
- Timestamp:
- 02/13/2012 05:46:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-loader.php
r5714 r5758 159 159 160 160 // If the user was attempting to access a group, but no group by that name was found, 404 161 if ( bp_is_groups_component() && empty( $this->current_group ) && !empty( $bp->current_action ) && !in_array( $bp->current_action, $this->forbidden_names ) ) {161 if ( bp_is_groups_component() && empty( $this->current_group ) && bp_current_action() && !in_array( bp_current_action(), $this->forbidden_names ) ) { 162 162 bp_do_404(); 163 163 return; … … 169 169 // Prepare for a redirect to the canonical URL 170 170 $bp->redirect_stack['base_url'] = bp_get_group_permalink( $this->current_group ); 171 $bp->redirect_stack['action'] = $bp->current_action;171 $bp->redirect_stack['action'] = bp_current_action(); 172 172 } 173 173
Note: See TracChangeset
for help on using the changeset viewer.