Changeset 9017
- Timestamp:
- 09/15/2014 03:01:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/bp-groups/bp-groups-actions.php
r8125 r9017 58 58 // Fetch the currently completed steps variable 59 59 if ( isset( $_COOKIE['bp_completed_create_steps'] ) && !isset( $reset_steps ) ) 60 $bp->groups->completed_create_steps = unserialize( stripslashes( $_COOKIE['bp_completed_create_steps']) );60 $bp->groups->completed_create_steps = json_decode( base64_decode( stripslashes( $_COOKIE['bp_completed_create_steps'] ) ) ); 61 61 62 62 // Set the ID of the new group, if it has already been created in a previous step 63 63 if ( isset( $_COOKIE['bp_new_group_id'] ) ) { 64 $bp->groups->new_group_id = $_COOKIE['bp_new_group_id'];64 $bp->groups->new_group_id = (int) $_COOKIE['bp_new_group_id']; 65 65 $bp->groups->current_group = groups_get_group( array( 'group_id' => $bp->groups->new_group_id ) ); 66 66 … … 150 150 // Reset cookie info 151 151 setcookie( 'bp_new_group_id', $bp->groups->new_group_id, time()+60*60*24, COOKIEPATH ); 152 setcookie( 'bp_completed_create_steps', serialize( $bp->groups->completed_create_steps), time()+60*60*24, COOKIEPATH );152 setcookie( 'bp_completed_create_steps', base64_encode( json_encode( $bp->groups->completed_create_steps ) ), time()+60*60*24, COOKIEPATH ); 153 153 154 154 // If we have completed all steps and hit done on the final step we
Note: See TracChangeset
for help on using the changeset viewer.