Changeset 388 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 10/10/2008 11:47:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r375 r388 25 25 * 26 26 * @package BuddyPress Core 27 * @global $menu WordPress admin navigation array global28 * @global $submenu WordPress admin sub navigation array global29 * @global $thirdlevel BuddyPress admin third level navigation30 * @uses add_menu_page() WordPress function to add a new top level admin navigation tab31 27 */ 32 28 function bp_core_set_uri_globals() { 33 29 global $current_component, $current_action, $action_variables; 30 31 /* Fetch the current URI and explode each part seperated by '/' into an array */ 32 $bp_uri = explode( "/", $_SERVER['REQUEST_URI'] ); 33 34 /* This is used to determine where the component and action indexes should start */ 35 $root_components = explode( ',', BP_CORE_ROOT_COMPONENTS ); 36 $is_root_component = in_array( $bp_uri[1], $root_components ); 34 37 35 38 /* Set the indexes, these are incresed by one if we are not on a VHOST install */ … … 37 40 $action_index = 1; 38 41 39 if ( VHOST == 'no' ) {42 if ( VHOST == 'no' && !$is_root_component ) { 40 43 $component_index++; 41 44 $action_index++; 42 45 } 43 44 /* Fetch the current URI and explode each part seperated by '/' into an array */45 $bp_uri = explode( "/", $_SERVER['REQUEST_URI'] );46 46 47 47 /* Take empties off the end */
Note: See TracChangeset
for help on using the changeset viewer.