Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/23/2008 07:19:11 PM (17 years ago)
Author:
apeatling
Message:
  • Fixed broken group wire posting
  • Fixed AJAX functionality across BuddyPress to work with the new member URLs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-ajax.php

    r391 r431  
    66    check_ajax_referer('friend_search');
    77
    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    
    168    $pag_page = isset( $_POST['fpage'] ) ? intval( $_POST['fpage'] ) : 1;
    179    $pag_num = isset( $_POST['num'] ) ? intval( $_POST['num'] ) : 5;
     
    6557   
    6658    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     }
    7559       
    7660    $pag_page = isset( $_POST['fpage'] ) ? intval( $_POST['fpage'] ) : 1;
     
    126110function friends_ajax_addremove_friend() {
    127111    global $bp;
    128    
    129     if ( !$bp ) {
    130         bp_core_setup_globals();
    131         friends_setup_globals();
    132     }
    133112
    134113    if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'is_friend' ) {
Note: See TracChangeset for help on using the changeset viewer.