Plugin Directory

Changeset 1958026


Ignore:
Timestamp:
10/17/2018 11:15:22 AM (7 years ago)
Author:
cometchat
Message:

updated avatar logic for buddypress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cometchat/trunk/includes/cometchat_cloud.php

    r1947153 r1958026  
    101101        }
    102102        $avatar = get_avatar_url($user_id);
     103
     104        if(function_exists('bp_core_fetch_avatar')) {
     105            $avatar = bp_core_fetch_avatar(array(
     106                    'item_id'   => $user_id,
     107                    'type'      => 'thumb',
     108                    'width'     => 32,
     109                    'height'    => 32,
     110                    'class'     => 'friend-avatar',
     111                    'html'      => false
     112                )
     113            );
     114        }
    103115
    104116        if(function_exists('bp_loggedin_user_domain')) {
Note: See TracChangeset for help on using the changeset viewer.