Ticket #519: emailrequest.patch
File emailrequest.patch, 1.6 KB (added by , 16 years ago) |
---|
-
bp-friends-notifications.php
11 11 $ud = get_userdata( $friend_id ); 12 12 13 13 $all_requests_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/' ); 14 $approve_request_link = wp_nonce_url( site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/accept/' . $friendship_id, 'friends_accept_friendship' ) ); 15 $reject_request_link = wp_nonce_url( site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) ); 16 $settings_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/settings/notifications' ); 17 14 $settings_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/settings/notifications' ); 15 18 16 // Set up and send the message 19 17 $to = $ud->user_email; 20 18 $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ); 21 19 22 20 $message = sprintf( __( 23 '%s wants to add you as a friend. You have two options:21 '%s wants to add you as a friend. 24 22 25 Accept the friendship request: %s26 27 Reject the friendship request: %s28 29 23 To view all of your pending friendship requests: %s 30 24 31 25 --------------------- 32 ', 'buddypress' ), $initiator_name, $a pprove_request_link, $reject_request_link, $all_requests_link, $message_link );26 ', 'buddypress' ), $initiator_name, $all_requests_link ); 33 27 34 28 $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link ); 35 29