Changeset 3698 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 01/11/2011 05:41:53 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/bp-default/_inc/ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r3627 r3698 147 147 } 148 148 149 if ( empty( $_POST['object'] ) && function_exists( 'bp_activity_post_update' ) ) {149 if ( empty( $_POST['object'] ) && bp_is_active( 'activity' ) ) { 150 150 $activity_id = bp_activity_post_update( array( 'content' => $_POST['content'] ) ); 151 151 } 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' ) ) 153 153 $activity_id = groups_post_update( array( 'content' => $_POST['content'], 'group_id' => $_POST['item_id'] ) ); 154 154 } else … … 589 589 } 590 590 } else { 591 if ( function_exists( 'friends_search_friends' ) ) {591 if ( bp_is_active( 'friends' ) ) { 592 592 $users = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $limit, 1 ); 593 593
Note: See TracChangeset
for help on using the changeset viewer.