Changeset 1562
- Timestamp:
- 06/22/2009 08:07:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/bp-messages/bp-messages-ajax.php
r1518 r1562 29 29 function messages_ajax_autocomplete_results() { 30 30 global $bp; 31 32 $friends = false; 31 33 32 34 // Get the friend ids based on the search terms 33 $friends = apply_filters( 'bp_friends_autocomplete_list', friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $_GET['limit'], 1 ), $_GET['q'], $_GET['limit'] ); 35 if ( function_exists( 'friends_search_friends' ) ) 36 $friends = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $_GET['limit'], 1 ); 34 37 38 $friends = apply_filters( 'bp_friends_autocomplete_list', $friends, $_GET['q'], $_GET['limit'] ); 39 35 40 if ( $friends['friends'] ) { 36 41 foreach ( $friends['friends'] as $user_id ) {
Note: See TracChangeset
for help on using the changeset viewer.