Changeset 2409
- Timestamp:
- 01/23/2010 01:48:47 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
bp-groups.php (modified) (1 diff)
-
bp-themes/bp-default/_inc/ajax.php (modified) (1 diff)
-
bp-themes/bp-default/members/single/messages/single.php (modified) (1 diff)
-
bp-xprofile.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2397 r2409 1333 1333 extract( $r, EXTR_SKIP ); 1334 1334 1335 /* Check for an existing entry and update if one exists. */ 1336 $id = bp_activity_get_activity_id( array( 1337 'user_id' => $user_id, 1338 'component' => $component, 1339 'type' => $type, 1340 'item_id' => $item_id, 1341 'secondary_item_id' => $secondary_item_id 1342 ) ); 1343 1344 return bp_activity_add( array( 'id' => $id, 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) ); 1335 return bp_activity_add( array( 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) ); 1345 1336 } 1346 1337 -
trunk/bp-themes/bp-default/_inc/ajax.php
r2397 r2409 445 445 check_ajax_referer( 'messages_send_message' ); 446 446 447 $result = messages_new_message( array( 'thread_id' => $_REQUEST['thread_id'], ' subject' => $_REQUEST['subject'], 'content' => $_REQUEST['content'] ) );447 $result = messages_new_message( array( 'thread_id' => $_REQUEST['thread_id'], 'content' => $_REQUEST['content'] ) ); 448 448 449 449 if ( $result ) { ?> -
trunk/bp-themes/bp-default/members/single/messages/single.php
r2284 r2409 82 82 83 83 <input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" /> 84 <input type="hidden" name="subject" id="subject" value="<?php _e( 'Re: ', 'buddypress' ); echo str_replace( 'Re: ', '', bp_get_the_thread_subject() ); ?>" />85 84 <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ) ?> 86 85 -
trunk/bp-xprofile.php
r2400 r2409 497 497 extract( $r, EXTR_SKIP ); 498 498 499 /* Check for an existing entry and update if one exists. */ 500 $id = bp_activity_get_activity_id( array( 501 'user_id' => $user_id, 502 'component' => $component, 503 'type' => $type, 504 'item_id' => $item_id, 505 'secondary_item_id' => $secondary_item_id 506 ) ); 507 508 return bp_activity_add( array( 'id' => $id, 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) ); 499 return bp_activity_add( array( 'user_id' => $user_id, 'action' => $action, 'content' => $content, 'primary_link' => $primary_link, 'component' => $component, 'type' => $type, 'item_id' => $item_id, 'secondary_item_id' => $secondary_item_id, 'recorded_time' => $recorded_time, 'hide_sitewide' => $hide_sitewide ) ); 509 500 } 510 501
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)