Changeset 4842 for trunk/bp-messages/bp-messages-template.php
- Timestamp:
- 07/24/2011 10:51:38 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-messages/bp-messages-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-template.php
r4829 r4842 344 344 } 345 345 346 /** 347 * Echoes the form action for Messages HTML forms 348 * 349 * @package BuddyPress 350 */ 346 351 function bp_messages_form_action() { 347 352 echo bp_get_messages_form_action(); 348 353 } 354 /** 355 * Returns the form action for Messages HTML forms 356 * 357 * @package BuddyPress 358 * 359 * @return str The form action 360 */ 349 361 function bp_get_messages_form_action() { 350 global $bp; 351 352 if ( isset( $bp->action_variables[0] ) ) 353 $av = $bp->action_variables[0]; 354 else 355 $av = ''; 356 357 return apply_filters( 'bp_get_messages_form_action', trailingslashit( $bp->loggedin_user->domain . $bp->messages->slug . '/' . $bp->current_action . '/' . $av . '/' ) ); 362 return apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ) ); 358 363 } 359 364 … … 719 724 720 725 if ( !$thread_id && bp_is_current_component( 'messages' ) && bp_is_current_action( 'view' ) ) 721 $thread_id = (int) $bp->action_variables[0];726 $thread_id = (int)bp_action_variable( 0 ); 722 727 723 728 $thread_template = new BP_Messages_Thread_Template( $thread_id, $order );
Note: See TracChangeset
for help on using the changeset viewer.