Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/24/2008 04:00:42 PM (18 years ago)
Author:
apeatling
Message:
  • Fixed avatar upload validation bug when image upload field left blank
  • Fixed incorrect "your" wording on site wide activity widget
  • Fixed profile wire posting bug
  • Updated site wide members directory
File:
1 edited

Legend:

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

    r431 r436  
    112112
    113113        if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'is_friend' ) {
    114                 if ( !friends_remove_friend( $bp['loggedin_userid'], $bp['current_userid'] ) ) {
     114                if ( !friends_remove_friend( $bp['loggedin_userid'], $_POST['fid'] ) ) {
    115115                        echo __("Friendship could not be canceled.", 'buddypress');
    116116                } else {
    117                         friends_update_friend_totals( $bp['loggedin_userid'], $bp['current_userid'], 'remove' );
    118                         echo __('Add Friend', 'buddypress');
     117                        friends_update_friend_totals( $bp['loggedin_userid'], $_POST['fid'], 'remove' );
     118                        echo '<a id="friend-' . $_POST['fid'] . '" class="add" rel="add" title="' . __( 'Add Friend', 'buddypress' ) . '" href="' . $bp['loggedin_domain'] . $bp['friends']['slug'] . '/add-friend/' . $_POST['fid'] . '">' . __( 'Add Friend', 'buddypress' ) . '</a>';
    119119                }
    120120        } else if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'not_friends' ) {
    … …  
    122122                        echo __("Friendship could not be requested.", 'buddypress');
    123123                } else {
    124                         echo __('Friendship Requested', 'buddypress');
     124                        echo 'Friendship Requested';
     125                        //echo '<a id="friend-' . $_POST['fid'] . '" class="remove" rel="remove" title="' . __( 'Remove Friend', 'buddypress' ) . '" href="' . $bp['loggedin_domain'] . $bp['friends']['slug'] . '/remove-friend/' . $_POST['fid'] . '">' . __( 'Remove Friend', 'buddypress' ) . '</a>';
    125126                }
    126127        } else {
Note: See TracChangeset for help on using the changeset viewer.