Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/24/2010 09:22:29 PM (14 years ago)
Author:
djpaul
Message:

Fixed #2676

File:
1 edited

Legend:

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

    r3232 r3300  
    88
    99    foreach( $recipients as $recipient ) {
    10         if ( $sender_id == $recipient->user_id || 'no' == get_usermeta( $recipient->user_id, 'notification_messages_new_message' ) ) continue;
     10        if ( $sender_id == $recipient->user_id || 'no' == get_user_meta( $recipient->user_id, 'notification_messages_new_message', true ) ) continue;
    1111
    1212        $ud = get_userdata( $recipient->user_id );
     
    1919
    2020        // Set up and send the message
    21         $email_to = $ud->user_email;
    22         $email_subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name );
     21        $email_to      = $ud->user_email;
     22        $sitename      = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );
     23        $email_subject = '[' . $sitename . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name );
    2324
    2425        $email_content = sprintf( __(
    25 '%1$s sent you a new message:
     26'%s sent you a new message:
    2627
    27 Subject: %2$s
     28Subject: %s
    2829
    29 "%3$s"
     30"%s"
    3031
    31 To view and read your messages please log in and visit: %4$s
     32To view and read your messages please log in and visit: %s
    3233
    3334---------------------
    3435', 'buddypress' ), $sender_name, $subject, $content, $message_link );
    3536
    36         $content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
     37        $email_content .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    3738
    3839        /* Send the message */
Note: See TracChangeset for help on using the changeset viewer.