Changeset 431 for trunk/bp-friends/bp-friends-ajax.php
- Timestamp:
- 10/23/2008 07:19:11 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends/bp-friends-ajax.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-ajax.php
r391 r431 6 6 check_ajax_referer('friend_search'); 7 7 8 if ( !$bp ) {9 bp_core_setup_globals();10 friends_setup_globals();11 12 if ( function_exists('xprofile_setup_globals') )13 xprofile_setup_globals();14 }15 16 8 $pag_page = isset( $_POST['fpage'] ) ? intval( $_POST['fpage'] ) : 1; 17 9 $pag_num = isset( $_POST['num'] ) ? intval( $_POST['num'] ) : 5; … … 65 57 66 58 check_ajax_referer('finder_search'); 67 68 if ( !$bp ) {69 bp_core_setup_globals();70 friends_setup_globals();71 72 if ( function_exists('xprofile_setup_globals') )73 xprofile_setup_globals();74 }75 59 76 60 $pag_page = isset( $_POST['fpage'] ) ? intval( $_POST['fpage'] ) : 1; … … 126 110 function friends_ajax_addremove_friend() { 127 111 global $bp; 128 129 if ( !$bp ) {130 bp_core_setup_globals();131 friends_setup_globals();132 }133 112 134 113 if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'is_friend' ) {
Note: See TracChangeset
for help on using the changeset viewer.