Skip to:
Content

BuddyPress.org

Changeset 4777


Ignore:
Timestamp:
07/22/2011 08:20:01 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Adjust verbiage and fix bug when a user sends a private message to themselves.

Location:
trunk
Files:
2 edited

Legend:

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

    r4678 r4777  
    780780        }
    781781
     782        // User sent a message to themselves
     783        if ( empty( $recipient_links ) )
     784            $recipient_links[] = __( 'you', 'buddypress' );
     785
    782786        return apply_filters( 'bp_get_the_thread_recipients', implode( ', ', (array)$recipient_links ) );
    783787    }
  • trunk/bp-themes/bp-default/members/single/messages/single.php

    r4675 r4777  
    99        <p id="message-recipients">
    1010            <span class="highlight">
    11                 <?php printf( __('Sent between %s and %s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?>
     11                <?php printf( __( 'Conversation between %s and you', 'buddypress' ), bp_get_the_thread_recipients() ) ?>
    1212            </span>
    1313            <a class="button confirm" href="<?php bp_the_thread_delete_link() ?>" title="<?php _e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ) ?></a> &nbsp;
Note: See TracChangeset for help on using the changeset viewer.