Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/11/2011 05:41:53 PM (11 years ago)
Author:
djpaul
Message:

Swap function_exists calls to bp_is_active in BP-Default. See #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r3627 r3698  
    147147    }
    148148
    149     if ( empty( $_POST['object'] ) && function_exists( 'bp_activity_post_update' ) ) {
     149    if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) {
    150150        $activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) );
    151151    } elseif ( $_POST['object'] == 'groups' ) {
    152         if ( !empty( $_POST['item_id'] ) && function_exists( 'groups_post_update' ) )
     152        if ( !empty( $_POST['item_id'] ) && bp_is_active( 'groups' ) )
    153153            $activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) );
    154154    } else
     
    589589        }
    590590    } else {
    591         if ( function_exists( 'friends_search_friends' ) ) {
     591        if ( bp_is_active( 'friends' ) ) {
    592592            $users = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $limit, 1 );
    593593
Note: See TracChangeset for help on using the changeset viewer.