Changeset 839
- Timestamp:
- 01/12/2009 11:22:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-catchuri.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r815 r839 30 30 global $current_userid; 31 31 global $is_member_page, $is_new_friend; 32 global $bp_unfiltered_uri; 32 33 33 34 $path = apply_filters( 'bp_uri', $_SERVER['REQUEST_URI'] ); … … 79 80 80 81 /* Reset the keys by merging with an empty array */ 81 $bp_uri = array_merge( array(), $bp_uri ); 82 $bp_uri = array_merge( array(), $bp_uri ); 83 $bp_unfiltered_uri = $bp_uri; 82 84 83 85 /* Catch a member page and set the current member ID */ … … 210 212 211 213 function bp_core_catch_no_access() { 212 global $bp, $bp_path, $bp_ no_status_set;214 global $bp, $bp_path, $bp_unfiltered_uri, $bp_no_status_set; 213 215 214 216 // If bp_core_redirect() and $bp_no_status_set is true, … … 216 218 if ( $bp_no_status_set ) 217 219 return false; 218 219 // If this user does not exist, redirect t hem to their own profile.220 // if ( !$bp['current_userid'])221 // bp_core_redire( $bp['loggedin_domain'] ); die;220 221 // If this user does not exist, redirect to the root domain. 222 if ( !$bp['current_userid'] && $bp_unfiltered_uri[0] == MEMBERS_SLUG && isset($bp_unfiltered_uri[1]) ) 223 bp_core_redirect( $bp['root_domain'] ); 222 224 223 225 if ( !$bp_path && !bp_is_blog_page() ) {
Note: See TracChangeset
for help on using the changeset viewer.