Skip to:
Content

BuddyPress.org

Changeset 1857


Ignore:
Timestamp:
09/11/2009 03:47:32 PM (15 years ago)
Author:
apeatling
Message:

Fixes #992 props petronic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r1852 r1857  
    363363            if ( $errors )
    364364                bp_core_add_message( __( 'There was a problem updating some of your profile information, please try again.', 'buddypress' ), 'error' );
    365             else
     365            else 
    366366                bp_core_add_message( __( 'Changes saved.', 'buddypress' ) );
    367367
     
    414414        if ( !bp_core_avatar_handle_crop( array( 'item_id' => $bp->displayed_user->id, 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) )
    415415            bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ), 'error' );
    416         else
     416        else {
    417417            bp_core_add_message( __( 'Your new avatar was uploaded successfully!', 'buddypress' ) );
    418 
     418            do_action( 'xprofile_avatar_uploaded' );
     419        }
    419420    }
    420421
Note: See TracChangeset for help on using the changeset viewer.