Changeset 2088 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 11/13/2009 01:01:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r2077 r2088 130 130 131 131 if ( 'user' == $object ) { 132 $ud = get_userdata( $item_id ); 133 $grav_email = $ud->user_email; 132 $grav_email = bp_core_get_user_email( $item_id ); 134 133 } else if ( 'group' == $object || 'blog' == $object ) { 135 134 $grav_email = "{$item_id}-{$object}@{$bp->root_domain}"; … … 140 139 141 140 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params ); 141 142 142 } else if ( !file_exists( $avatar_url ) && $no_grav ) 143 143 return false;
Note: See TracChangeset
for help on using the changeset viewer.