Changeset 3450
- Timestamp:
- 11/19/2010 07:53:41 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r3371 r3450 167 167 } 168 168 169 if ( $search_terms && function_exists( 'xprofile_install' ) ) {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%%'"; -
trunk/bp-core/bp-core-templatetags.php
r3449 r3450 990 990 global $bp; 991 991 992 if ( function_exists( 'xprofile_install' )993 || function_exists( 'groups_install' )994 || ( function_exists( 'bp_blogs_install' ) && is_multisite() )992 if ( bp_is_active( 'xprofile' ) 993 || bp_is_active( 'groups' ) 994 || ( bp_is_active( 'blogs' ) && is_multisite() ) 995 995 || ( function_exists( 'bp_forums_setup' ) && !(int)$bp->site_options['bp-disable-forum-directory'] ) 996 996 ) { -
trunk/bp-forums.php
r3365 r3450 393 393 394 394 /* Fetch fullname for the topic's last poster */ 395 if ( function_exists( 'xprofile_install' ) ) {395 if ( bp_is_active( 'xprofile' ) ) { 396 396 $poster_names = $wpdb->get_results( $wpdb->prepare( "SELECT t.topic_id, pd.value FROM {$bp->profile->table_name_data} pd, {$bbdb->topics} t WHERE pd.user_id = t.topic_last_poster AND pd.field_id = 1 AND t.topic_id IN ( {$topic_ids} )" ) ); 397 397 for ( $i = 0; $i < count( $topics ); $i++ ) { … … 511 511 512 512 /* Fetch fullname for each poster. */ 513 if ( function_exists( 'xprofile_install' ) ) {513 if ( bp_is_active( 'xprofile' ) ) { 514 514 $poster_names = $wpdb->get_results( $wpdb->prepare( "SELECT pd.user_id, pd.value FROM {$bp->profile->table_name_data} pd WHERE pd.user_id IN ( {$user_ids} )" ) ); 515 515 for ( $i = 0; $i < count( $posts ); $i++ ) {
Note: See TracChangeset
for help on using the changeset viewer.