Changeset 3917 for trunk/bp-core/bp-core-classes.php
- Timestamp:
- 01/25/2011 08:58:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r3909 r3917 56 56 */ 57 57 function populate() { 58 if ( bp_is_active( ' profile' ) )58 if ( bp_is_active( 'xprofile' ) ) 59 59 $this->profile_data = $this->get_profile_data(); 60 60 … … 124 124 $sql['from'] = "FROM " . CUSTOM_USER_TABLE . " u LEFT JOIN " . CUSTOM_USER_META_TABLE . " um ON um.user_id = u.ID"; 125 125 126 if ( $search_terms && bp_is_active( ' profile' ) || 'alphabetical' == $type )126 if ( $search_terms && bp_is_active( 'xprofile' ) || 'alphabetical' == $type ) 127 127 $sql['join_profiledata'] = "LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id"; 128 128 … … 167 167 } 168 168 169 if ( $search_terms && bp_is_active( ' profile' ) ) {169 if ( $search_terms && bp_is_active( 'xprofile' ) ) { 170 170 $search_terms = like_escape( $wpdb->escape( $search_terms ) ); 171 171 $sql['where_searchterms'] = "AND pd.value LIKE '%%$search_terms%%'"; … … 349 349 350 350 // Fetch the user's full name 351 if ( bp_is_active( ' profile' ) && 'alphabetical' != $type ) {351 if ( bp_is_active( 'xprofile' ) && 'alphabetical' != $type ) { 352 352 // Ensure xprofile globals are set 353 353 if ( !defined( 'BP_XPROFILE_FULLNAME_FIELD_NAME' ) )
Note: See TracChangeset
for help on using the changeset viewer.