Skip to:
Content

BuddyPress.org

Ticket #1205: signup-avatar-crop-error.patch

File signup-avatar-crop-error.patch, 787 bytes (added by johnjamesjacoby, 16 years ago)

Correct error message type

  • bp-core-signup.php

     
    174174                $bp->avatar_admin->step = 'upload-image';
    175175
    176176                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' );
    178178                else
    179179                        bp_core_add_message( __( 'Your new avatar was uploaded successfully', 'buddypress' ) );
    180180