Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 09:45:45 PM (15 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-xprofile/bp-xprofile-functions.php

    r4612 r4632  
    349349                $directory = 'avatars';
    350350
    351         $path    = BP_AVATAR_UPLOAD_PATH . '/avatars/' . $user_id;
     351        $path    = bp_core_avatar_upload_path() . '/avatars/' . $user_id;
    352352        $newbdir = $path;
    353353
     
    355355                @wp_mkdir_p( $path );
    356356
    357         $newurl    = BP_AVATAR_URL . '/avatars/' . $user_id;
     357        $newurl    = bp_core_avatar_url() . '/avatars/' . $user_id;
    358358        $newburl   = $newurl;
    359359        $newsubdir = '/avatars/' . $user_id;
Note: See TracChangeset for help on using the changeset viewer.