Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2010 10:37:51 PM (15 years ago)
Author:
apeatling
Message:

Fixing missing message thread title.

File:
1 edited

Legend:

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

    r2408 r2434  
    555555        $this->thread = new BP_Messages_Thread( $thread_id, true );
    556556        $this->message_count = count( $this->thread->messages );
     557
     558        $last_message_index = $this->message_count - 1;
     559        $this->thread->last_message_id = $this->thread->messages[$last_message_index]->id;
     560        $this->thread->last_message_date = $this->thread->messages[$last_message_index]->date_sent;
     561        $this->thread->last_sender_id = $this->thread->messages[$last_message_index]->sender_id;
     562        $this->thread->last_message_subject = $this->thread->messages[$last_message_index]->subject;
     563        $this->thread->last_message_content = $this->thread->messages[$last_message_index]->message;
    557564    }
    558565
Note: See TracChangeset for help on using the changeset viewer.