Skip to:
Content

BuddyPress.org

Changeset 1151


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

Added link to user's profile in friend request email.

File:
1 edited

Legend:

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

    r1150 r1151  
    1010   
    1111    $ud = get_userdata( $friend_id );
     12    $initiator_ud = get_userdata( $initiator_id );
    1213   
    1314    $all_requests_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/' );
    1415    $settings_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/settings/notifications' );
     16   
     17    $initiator_link = site_url( MEMBERS_SLUG . '/' . $initiator_ud->user_login . '/profile' );
    1518
    1619    // Set up and send the message
     
    1922
    2023    $message = sprintf( __(
    21 '%s wants to add you as a friend.
     24"%s wants to add you as a friend.
    2225
    2326To view all of your pending friendship requests: %s
    2427
     28To view %s's profile: %s
     29
    2530---------------------
    26 ', 'buddypress' ), $initiator_name, $all_requests_link, $message_link );
     31", 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link );
    2732
    2833    $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
Note: See TracChangeset for help on using the changeset viewer.