Changeset 4632 for trunk/bp-members/bp-members-signup.php
- Timestamp:
- 07/09/2011 09:45:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-signup.php
r4606 r4632 191 191 // Check if the avatar folder exists. If it does, move rename it, move 192 192 // it and delete the signup avatar dir 193 if ( file_exists( BP_AVATAR_UPLOAD_PATH. '/avatars/signups/' . $hashed_key ) )194 @rename( BP_AVATAR_UPLOAD_PATH . '/avatars/signups/' . $hashed_key, BP_AVATAR_UPLOAD_PATH. '/avatars/' . $user );193 if ( file_exists( bp_core_avatar_upload_path() . '/avatars/signups/' . $hashed_key ) ) 194 @rename( bp_core_avatar_upload_path() . '/avatars/signups/' . $hashed_key, bp_core_avatar_upload_path() . '/avatars/' . $user ); 195 195 196 196 bp_core_add_message( __( 'Your account is now active!', 'buddypress' ) ); … … 550 550 return false; 551 551 552 $path = BP_AVATAR_UPLOAD_PATH. '/avatars/signups/' . $bp->signup->avatar_dir;552 $path = bp_core_avatar_upload_path() . '/avatars/signups/' . $bp->signup->avatar_dir; 553 553 $newbdir = $path; 554 554 … … 556 556 @wp_mkdir_p( $path ); 557 557 558 $newurl = BP_AVATAR_URL. '/avatars/signups/' . $bp->signup->avatar_dir;558 $newurl = bp_core_avatar_url() . '/avatars/signups/' . $bp->signup->avatar_dir; 559 559 $newburl = $newurl; 560 560 $newsubdir = '/avatars/signups/' . $bp->signup->avatar_dir;
Note: See TracChangeset
for help on using the changeset viewer.