Skip to:
Content

BuddyPress.org

Ticket #574: 574-1.diff

File 574-1.diff, 906 bytes (added by boonebgorges, 14 years ago)
  • bp-messages.php

     
    237237        /* Mark message read */
    238238        messages_mark_thread_read( $thread_id );
    239239
     240        if ( $count = messages_get_unread_count() )
     241                $name = sprintf( __('Messages <strong>(%s)</strong>', 'buddypress'), $count );
     242        else
     243                $name = __('Messages <strong></strong>', 'buddypress');
     244
     245        $bp->bp_nav[$bp->messages->slug]['name'] = $name;
     246
    240247        do_action( 'messages_action_view_message' );
    241248
    242249        bp_core_new_subnav_item( array( 'name' => sprintf( __( 'From: %s', 'buddypress'), BP_Messages_Thread::get_last_sender($thread_id) ), 'slug' => 'view', 'parent_url' => $bp->loggedin_user->domain . $bp->messages->slug . '/', 'parent_slug' => $bp->messages->slug, 'screen_function' => true, 'position' => 40, 'user_has_access' => bp_is_my_profile() ) );