Skip to:
Content

BuddyPress.org

Changeset 2651


Ignore:
Timestamp:
02/10/2010 04:59:06 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1895

File:
1 edited

Legend:

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

    r2450 r2651  
    77    $sender_name = bp_core_get_user_displayname( $sender_id );
    88
    9     for ( $i = 0; $i < count($recipients); $i++ ) {
    10         if ( $sender_id == $recipients[$i]->user_id || 'no' == get_usermeta( $recipients[$i]->user_id, 'notification_messages_new_message' ) ) continue;
     9    foreach( $recipients as $recipient ) {
     10        if ( $sender_id == $recipient->user_id || 'no' == get_usermeta( $recipient->user_id, 'notification_messages_new_message' ) ) continue;
    1111
    12         $ud = get_userdata( $recipients[$i]->user_id );
    13         $message_link = bp_core_get_user_domain( $recipients[$i]->user_id ) . 'messages/view/' . $message_id;
    14         $settings_link = bp_core_get_user_domain( $recipients[$i]->user_id ) . 'settings/notifications';
     12        $ud = get_userdata( $recipient->user_id );
     13        $message_link = bp_core_get_user_domain( $recipient->user_id ) . BP_MESSAGES_SLUG .'/';
     14        $settings_link = bp_core_get_user_domain( $recipient->user_id ) . 'settings/notifications/';
    1515
    1616        // Set up and send the message
     
    2525"%s"
    2626
    27 To view the message: %s
     27To view and read your messages please log in and visit: %s
    2828
    2929---------------------
Note: See TracChangeset for help on using the changeset viewer.