Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/04/2010 10:29:26 AM (16 years ago)
Author:
apeatling
Message:

Updating blog avatar support so it at least shows the gravatar of the main admin user for the blog. Upload functionality still needs to be implemented.

File:
1 edited

Legend:

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

    r2229 r2255  
    140140        else if ( 'thumb' == $type ) $grav_size = BP_AVATAR_THUMB_WIDTH;
    141141
    142         if ( 'user' == $object ) {
    143             if ( empty( $email ) )
     142        if ( empty( $email ) ) {
     143            if ( 'user' == $object ) {
    144144                $email = bp_core_get_user_email( $item_id );
    145         } else if ( 'group' == $object || 'blog' == $object ) {
    146             $email = "{$item_id}-{$object}@{$bp->root_domain}";
     145            } else if ( 'group' == $object || 'blog' == $object ) {
     146                $email = "{$item_id}-{$object}@{$bp->root_domain}";
     147            }
    147148        }
    148149
Note: See TracChangeset for help on using the changeset viewer.