Changeset 5302 for trunk/bp-messages/bp-messages-template.php
- Timestamp:
- 11/08/2011 01:24:47 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-template.php
r5301 r5302 128 128 if ( 'inbox' == $this->box ) { 129 129 foreach ( (array)$this->thread->messages as $key => $message ) { 130 if ( $bp->loggedin_user->id!= $message->sender_id ) {130 if ( bp_loggedin_user_id() != $message->sender_id ) { 131 131 $last_message_index = $key; 132 132 break; … … 136 136 } elseif ( 'sentbox' == $this->box ) { 137 137 foreach ( (array)$this->thread->messages as $key => $message ) { 138 if ( $bp->loggedin_user->id== $message->sender_id ) {138 if ( bp_loggedin_user_id() == $message->sender_id ) { 139 139 $last_message_index = $key; 140 140 break; … … 160 160 161 161 $defaults = array( 162 'user_id' => $bp->loggedin_user->id,162 'user_id' => bp_loggedin_user_id(), 163 163 'box' => 'inbox', 164 164 'per_page' => 10, … … 174 174 } else { 175 175 if ( 'inbox' == $bp->current_action ) 176 bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->messages->id, 'new_message' );176 bp_core_delete_notifications_by_type( bp_loggedin_user_id(), $bp->messages->id, 'new_message' ); 177 177 178 178 if ( 'sentbox' == $bp->current_action ) … … 781 781 782 782 foreach( (array)$thread_template->thread->recipients as $recipient ) { 783 if ( $recipient->user_id !== $bp->loggedin_user->id)783 if ( $recipient->user_id !== bp_loggedin_user_id() ) 784 784 $recipient_links[] = bp_core_get_userlink( $recipient->user_id ); 785 785 }
Note: See TracChangeset
for help on using the changeset viewer.