Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 09:45:45 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces wrapper functions for avatar-related constants. Also moves avatar settings into bp global so that they are more easily configurable. See #3314

File:
1 edited

Legend:

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

    r4606 r4632  
    191191        // Check if the avatar folder exists. If it does, move rename it, move
    192192        // 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 );
    195195
    196196        bp_core_add_message( __( 'Your account is now active!', 'buddypress' ) );
     
    550550        return false;
    551551
    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;
    553553    $newbdir = $path;
    554554
     
    556556        @wp_mkdir_p( $path );
    557557
    558     $newurl = BP_AVATAR_URL . '/avatars/signups/' . $bp->signup->avatar_dir;
     558    $newurl = bp_core_avatar_url() . '/avatars/signups/' . $bp->signup->avatar_dir;
    559559    $newburl = $newurl;
    560560    $newsubdir = '/avatars/signups/' . $bp->signup->avatar_dir;
Note: See TracChangeset for help on using the changeset viewer.