Skip to:
Content

BuddyPress.org

Changeset 4551


Ignore:
Timestamp:
06/21/2011 08:39:25 PM (10 years ago)
Author:
djpaul
Message:

Change single friendship notification URL to clear the notification. Fixes #3290

File:
1 edited

Legend:

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

    r4245 r4551  
    5757    switch ( $action ) {
    5858        case 'friendship_accepted':
    59             if ( (int)$total_items > 1 ) {
    60                 return apply_filters( 'bp_friends_multiple_friendship_accepted_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/my-friends/newest" title="' . __( 'My Friends', 'buddypress' ) . '">' . sprintf( __('%d friends accepted your friendship requests', 'buddypress' ), (int)$total_items ) . '</a>', (int)$total_items );
    61             } else {
    62                 $user_fullname = bp_core_get_user_displayname( $item_id );
    63                 $user_url = bp_core_get_user_domain( $item_id );
    64                 return apply_filters( 'bp_friends_single_friendship_accepted_notification', '<a href="' . $user_url . '?new" title="' . $user_fullname .'\'s profile">' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $user_fullname ) . '</a>', $user_fullname );
    65             }
     59        $user_fullname = bp_core_get_user_displayname( $item_id );
     60            if ( (int)$total_items > 1 )
     61                return apply_filters( 'bp_friends_multiple_friendship_accepted_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/my-friends/newest">' . sprintf( __('%d friends accepted your friendship requests', 'buddypress' ), (int)$total_items ) . '</a>', (int)$total_items );
     62            else
     63                return apply_filters( 'bp_friends_single_friendship_accepted_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/my-friends/newest">' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $user_fullname ) . '</a>', $user_fullname );
     64
    6665            break;
    6766
Note: See TracChangeset for help on using the changeset viewer.