Show
Ignore:
Timestamp:
06/19/08 17:10:30 (7 months ago)
Author:
apeatling
Message:

Fixed issues with subdirectory WPMU installations and BuddyPress

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r162 r167  
    10771077         
    10781078        function get_value_byid( $field_id, $user_id = null ) { 
    1079                 global $wpdb, $coreuser_id, $bp_xprofile_table_name_data; 
     1079                global $wpdb, $current_userid, $bp_xprofile_table_name_data; 
    10801080 
    10811081                if ( !$user_id ) 
    1082                         $user_id = $coreuser_id; 
     1082                        $user_id = $current_userid; 
    10831083 
    10841084                $sql = $wpdb->prepare("SELECT * FROM $bp_xprofile_table_name_data WHERE field_id = %d AND user_id = %d", $field_id, $user_id ); 
     
    10921092         
    10931093        function get_value_byfieldname( $fields, $user_id = null ) { 
    1094                 global $coreuser_id, $wpdb, $bp_xprofile_table_name_fields, $bp_xprofile_table_name_data; 
     1094                global $current_userid, $wpdb, $bp_xprofile_table_name_fields, $bp_xprofile_table_name_data; 
    10951095 
    10961096                if ( !$fields ) 
     
    10981098 
    10991099                if ( !$user_id ) 
    1100                         $user_id = $coreuser_id; 
     1100                        $user_id = $current_userid; 
    11011101 
    11021102                if ( is_array($fields) ) {