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-groups/bp-groups-functions.php

    r4611 r4632  
    424424        $group_id = $bp->groups->current_group->id;
    425425
    426     $path    = BP_AVATAR_UPLOAD_PATH . '/group-avatars/' . $group_id;
     426    $path    = bp_core_avatar_upload_path() . '/group-avatars/' . $group_id;
    427427    $newbdir = $path;
    428428
     
    430430        @wp_mkdir_p( $path );
    431431
    432     $newurl    = BP_AVATAR_URL . '/group-avatars/' . $group_id;
     432    $newurl    = bp_core_avatar_url() . '/group-avatars/' . $group_id;
    433433    $newburl   = $newurl;
    434434    $newsubdir = '/group-avatars/' . $group_id;
Note: See TracChangeset for help on using the changeset viewer.