Skip to:
Content

BuddyPress.org

Changeset 2919 for trunk/bp-forums.php


Ignore:
Timestamp:
04/13/2010 04:01:07 PM (14 years ago)
Author:
apeatling
Message:

Replacing function_exists() checks with bp_is_active() checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r2863 r2919  
    356356
    357357    /* Fetch fullname for the topic's last poster */
    358     if ( function_exists( 'xprofile_install' ) ) {
     358    if ( bp_is_active( 'xprofile' ) ) {
    359359        $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} )" ) );
    360360        for ( $i = 0; $i < count( $topics ); $i++ ) {
     
    474474
    475475    /* Fetch fullname for each poster. */
    476     if ( function_exists( 'xprofile_install' ) ) {
     476    if ( bp_is_active( 'xprofile' ) ) {
    477477        $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} )" ) );
    478478        for ( $i = 0; $i < count( $posts ); $i++ ) {
Note: See TracChangeset for help on using the changeset viewer.