Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/11/2009 10:59:21 PM (17 years ago)
Author:
apeatling
Message:

Re-factored message sending code.

File:
1 edited

Legend:

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

    r1636 r1651  
    159159        function bp_get_message_thread_id() {
    160160                global $messages_template;
     161
    161162                return apply_filters( 'bp_get_message_thread_id', $messages_template->thread->thread_id );
    162163        }
     
    284285                global $bp;
    285286
    286                 return apply_filters( 'bp_get_messages_form_action', $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action );
     287                return apply_filters( 'bp_get_messages_form_action', $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $bp->action_variables[0] . '/' );
    287288        }
    288289
     
    582583}
    583584
     585function bp_the_thread_id() {
     586        echo bp_get_the_thread_id();
     587}
     588        function bp_get_the_thread_id() {
     589                global $thread_template;
     590               
     591                return apply_filters( 'bp_get_the_thread_id', $thread_template->thread->thread_id );
     592        }
     593
    584594function bp_the_thread_subject() {
    585595        echo bp_get_the_thread_subject();
     
    587597        function bp_get_the_thread_subject() {
    588598                global $thread_template;
    589                
    590                 return apply_filters( 'bp_get_the_thread_subject', $thread_template->thread->subject );
     599
     600                return apply_filters( 'bp_get_the_thread_subject', $thread_template->thread->last_message_subject );
    591601        }
    592602
Note: See TracChangeset for help on using the changeset viewer.