Changeset 6096
- Timestamp:
- 06/14/2012 06:12:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-loader.php
r6093 r6096 78 78 79 79 // Setup the active components 80 $active_components = array_flip( array_diff( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), array_values( $bp->deactivated_components ) ) ); 81 82 // Loop through active components and set the values 83 $bp->active_components = array_map( '__return_true', $active_components ); 80 $active_components = array_fill_keys( array_diff( array_values( array_merge( $optional_components, $required_components ) ), array_values( $deactivated_components ) ), '1' ); 84 81 85 82 // Set the active component global … … 93 90 94 91 // Setup the active components 95 $active_components = array_flip( array_values( array_merge( $bp->optional_components, $bp->required_components ) ) ); 96 97 // Loop through active components and set the values 98 $bp->active_components = array_map( '__return_true', $active_components ); 92 $active_components = array_fill_keys( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), '1' ); 99 93 100 94 // Set the active component global
Note: See TracChangeset
for help on using the changeset viewer.