Skip to:
Content

BuddyPress.org

Changeset 1142 for trunk/bp-friends.php


Ignore:
Timestamp:
02/25/2009 04:11:25 AM (16 years ago)
Author:
apeatling
Message:

Fixes #497

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r1128 r1142  
    267267        case 'friendship_accepted':
    268268            if ( (int)$total_items > 1 ) {
    269                 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'), (int)$total_items ) . '</a>', (int)$total_items );     
     269                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 );     
    270270            } else {
    271271                $user_fullname = bp_core_global_user_fullname( $item_id );
     
    277277        case 'friendship_request':
    278278            if ( (int)$total_items > 1 ) {
    279                 return apply_filters( 'bp_friends_multiple_friendship_request_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/requests" title="' . __( 'Friendship requests', 'buddypress' ) . '">' . sprintf( __('You have %d pending friendship requests'), (int)$total_items ) . '</a>', $total_items );       
     279                return apply_filters( 'bp_friends_multiple_friendship_request_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/requests" title="' . __( 'Friendship requests', 'buddypress' ) . '">' . sprintf( __('You have %d pending friendship requests', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );     
    280280            } else {
    281281                $user_fullname = bp_core_global_user_fullname( $item_id );
    282282                $user_url = bp_core_get_userurl( $item_id );
    283                 return apply_filters( 'bp_friends_single_friendship_request_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/requests" title="' . __( 'Friendship requests', 'buddypress' ) . '">' . sprintf( __('You have a friendship request from %s'), $user_fullname ) . '</a>', $user_fullname );
     283                return apply_filters( 'bp_friends_single_friendship_request_notification', '<a href="' . $bp->loggedin_user->domain . $bp->friends->slug . '/requests" title="' . __( 'Friendship requests', 'buddypress' ) . '">' . sprintf( __('You have a friendship request from %s', 'buddypress' ), $user_fullname ) . '</a>', $user_fullname );
    284284            }   
    285285        break;
Note: See TracChangeset for help on using the changeset viewer.