Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/05/2010 03:09:16 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r2583 r2609  
    186186            bp_core_add_message( __( 'Your new avatar was uploaded successfully', 'buddypress' ) );
    187187
     188        /* If this is a single WP install, move the avatar to the user's folder since there is no activation process to move it. */
     189        if ( !bp_core_is_multisite() ) {
     190            $user_id = bp_core_get_userid( $_POST['signup_username'] );
     191
     192            if ( !empty( $user_id ) && file_exists( BP_AVATAR_UPLOAD_PATH . '/avatars/signups/' . $_POST['signup_avatar_dir'] ) ) {
     193                @rename( BP_AVATAR_UPLOAD_PATH . '/avatars/signups/' . $_POST['signup_avatar_dir'], BP_AVATAR_UPLOAD_PATH . '/avatars/' . $user_id );
     194            }
     195        }
    188196    }
    189197    bp_core_load_template( 'registration/register' );
Note: See TracChangeset for help on using the changeset viewer.