Changeset 3455 for trunk/bp-groups.php
- Timestamp:
- 11/20/2010 10:46:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r3435 r3455 1030 1030 } 1031 1031 1032 if ( !$bp->groups->new_group_id = groups_create_group( array( 'group_id' => $bp->groups->new_group_id, 'name' => $_POST['group-name'], 'description' => $_POST['group-desc'], 'slug' => groups_check_slug( sanitize_title( esc_attr( $_POST['group-name'] ) ) ), 'date_created' => gmdate( "Y-m-d H:i:s"), 'status' => 'public' ) ) ) {1032 if ( !$bp->groups->new_group_id = groups_create_group( array( 'group_id' => $bp->groups->new_group_id, 'name' => $_POST['group-name'], 'description' => $_POST['group-desc'], 'slug' => groups_check_slug( sanitize_title( esc_attr( $_POST['group-name'] ) ) ), 'date_created' => bp_core_current_time(), 'status' => 'public' ) ) ) { 1033 1033 bp_core_add_message( __( 'There was an error saving group details, please try again.', 'buddypress' ), 'error' ); 1034 1034 bp_core_redirect( $bp->root_domain . '/' . $bp->groups->slug . '/create/step/' . $bp->groups->current_create_step . '/' ); … … 1036 1036 1037 1037 groups_update_groupmeta( $bp->groups->new_group_id, 'total_member_count', 1 ); 1038 groups_update_groupmeta( $bp->groups->new_group_id, 'last_activity', gmdate( "Y-m-d H:i:s") );1038 groups_update_groupmeta( $bp->groups->new_group_id, 'last_activity', bp_core_current_time() ); 1039 1039 } 1040 1040 … … 1325 1325 return false; 1326 1326 1327 groups_update_groupmeta( $group_id, 'last_activity', gmdate( "Y-m-d H:i:s") );1327 groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() ); 1328 1328 } 1329 1329 add_action( 'groups_joined_group', 'groups_update_last_activity' ); … … 1571 1571 } 1572 1572 1573 groups_update_groupmeta( $group->id, 'last_activity', gmdate( "Y-m-d H:i:s") );1573 groups_update_groupmeta( $group->id, 'last_activity', bp_core_current_time() ); 1574 1574 do_action( 'groups_settings_updated', $group->id ); 1575 1575 … … 1713 1713 $new_member->is_admin = 0; 1714 1714 $new_member->user_title = ''; 1715 $new_member->date_modified = gmdate( "Y-m-d H:i:s");1715 $new_member->date_modified = bp_core_current_time(); 1716 1716 $new_member->is_confirmed = 1; 1717 1717 … … 1734 1734 // Modify group meta 1735 1735 groups_update_groupmeta( $group_id, 'total_member_count', (int) groups_get_groupmeta( $group_id, 'total_member_count') + 1 ); 1736 groups_update_groupmeta( $group_id, 'last_activity', gmdate( "Y-m-d H:i:s") );1736 groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() ); 1737 1737 1738 1738 do_action( 'groups_join_group', $group_id, $user_id ); … … 1909 1909 require_once( BP_PLUGIN_DIR . '/bp-groups/bp-groups-notifications.php' ); 1910 1910 1911 groups_update_groupmeta( $group_id, 'last_activity', gmdate( "Y-m-d H:i:s") );1911 groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() ); 1912 1912 do_action( 'bp_groups_posted_update', $content, $user_id, $group_id, $activity_id ); 1913 1913 … … 2160 2160 'group_id' => false, 2161 2161 'inviter_id' => $bp->loggedin_user->id, 2162 'date_modified' => gmdate( "Y-m-d H:i:s"),2162 'date_modified' => bp_core_current_time(), 2163 2163 'is_confirmed' => 0 2164 2164 ); … … 2216 2216 /* Modify group meta */ 2217 2217 groups_update_groupmeta( $group_id, 'total_member_count', (int) groups_get_groupmeta( $group_id, 'total_member_count') + 1 ); 2218 groups_update_groupmeta( $group_id, 'last_activity', gmdate( "Y-m-d H:i:s") );2218 groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() ); 2219 2219 2220 2220 bp_core_delete_notifications_for_user_by_item_id( $user_id, $group_id, $bp->groups->id, 'group_invite' ); … … 2366 2366 $requesting_user->is_admin = 0; 2367 2367 $requesting_user->user_title = ''; 2368 $requesting_user->date_modified = gmdate( "Y-m-d H:i:s");2368 $requesting_user->date_modified = bp_core_current_time(); 2369 2369 $requesting_user->is_confirmed = 0; 2370 2370 $requesting_user->comments = $_POST['group-request-membership-comments'];
Note: See TracChangeset
for help on using the changeset viewer.