Changeset 849 for trunk/bp-groups.php
- Timestamp:
- 01/15/2009 11:01:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r840 r849 831 831 832 832 function groups_record_activity( $args = true ) { 833 global $group_obj; 834 833 835 if ( function_exists('bp_activity_record') ) { 834 836 extract($args); 835 836 $group = new BP_Groups_Group( $item_id, false, false ); 837 838 if ( $group->status == 'public' ) 837 838 if ( $group_obj->status == 'public' ) 839 839 bp_activity_record( $item_id, $component_name, $component_action, $is_private, $secondary_item_id, $user_id, $secondary_user_id ); 840 840 } … … 1526 1526 function groups_new_wire_post( $group_id, $content ) { 1527 1527 if ( $wire_post_id = bp_wire_new_post( $group_id, $content ) ) { 1528 1529 1528 /* Record in activity streams */ 1530 1529 groups_record_activity( array( 'item_id' => $wire_post_id, 'group_id' => $group_id, 'component_name' => 'groups', 'component_action' => 'new_wire_post', 'is_private' => 0 ) );
Note: See TracChangeset
for help on using the changeset viewer.