Changeset 3757 for trunk/bp-messages/bp-messages-template.php
- Timestamp:
- 01/20/2011 10:53:49 AM (14 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-template.php
r3750 r3757 166 166 } else { 167 167 if ( 'inbox' == $bp->current_action ) 168 bp_ core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, $bp->messages->id, 'new_message' );168 bp_users_delete_notifications_by_type( $bp->loggedin_user->id, $bp->messages->id, 'new_message' ); 169 169 170 170 if ( 'sentbox' == $bp->current_action ) … … 343 343 global $bp; 344 344 345 return apply_filters( 'bp_get_messages_form_action', trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $bp->action_variables[0] . '/' ) ); 345 if ( isset( $bp->action_variables[0] ) ) 346 $av = $bp->action_variables[0]; 347 else 348 $av = ''; 349 350 return apply_filters( 'bp_get_messages_form_action', trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $av . '/' ) ); 346 351 } 347 352 … … 734 739 global $thread_template, $bp; 735 740 736 if ( count($thread_template->thread->recipients) >= 5 ) 741 $recipient_links = array(); 742 743 if ( count( $thread_template->thread->recipients ) >= 5 ) 737 744 return apply_filters( 'bp_get_the_thread_recipients', sprintf( __( '%d Recipients', 'buddypress' ), count($thread_template->thread->recipients) ) ); 738 745
Note: See TracChangeset
for help on using the changeset viewer.