Skip to:
Content

BuddyPress.org

Changeset 2493


Ignore:
Timestamp:
01/31/2010 01:48:19 PM (16 years ago)
Author:
apeatling
Message:

Fixes upload dirs to use BP constants.

Location:
trunk
Files:
3 edited

Legend:

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

    r2481 r2493  
    261261        @wp_mkdir_p( $path );
    262262
    263     $newurl = str_replace( WP_CONTENT_DIR, WP_CONTENT_URL, $path );
     263    $newurl = str_replace( BP_AVATAR_UPLOAD_PATH, BP_AVATAR_URL, $path );
    264264    $newburl = $newurl;
    265265    $newsubdir = '/avatars/signups/' . $bp->signup->avatar_dir;
  • trunk/bp-groups.php

    r2471 r2493  
    18491849        @wp_mkdir_p( $path );
    18501850
    1851     $newurl = str_replace( WP_CONTENT_DIR, WP_CONTENT_URL, $path );
     1851    $newurl = str_replace( BP_AVATAR_UPLOAD_PATH, BP_AVATAR_URL, $path );
    18521852    $newburl = $newurl;
    18531853    $newsubdir = '/group-avatars/' . $group_id;
  • trunk/bp-xprofile.php

    r2460 r2493  
    842842        @wp_mkdir_p( $path );
    843843
    844     $newurl = str_replace( WP_CONTENT_DIR, WP_CONTENT_URL, $path );
     844    $newurl = str_replace( BP_AVATAR_UPLOAD_PATH, BP_AVATAR_URL, $path );
    845845    $newburl = $newurl;
    846846    $newsubdir = '/avatars/' . $user_id;
Note: See TracChangeset for help on using the changeset viewer.