Ticket #1205: signup-avatar-crop-error.patch
File signup-avatar-crop-error.patch, 787 bytes (added by , 16 years ago) |
---|
-
bp-core-signup.php
174 174 $bp->avatar_admin->step = 'upload-image'; 175 175 176 176 if ( !bp_core_avatar_handle_crop( array( 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) ) 177 bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ) );177 bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ), 'error' ); 178 178 else 179 179 bp_core_add_message( __( 'Your new avatar was uploaded successfully', 'buddypress' ) ); 180 180