Plugin Directory

Changeset 709870


Ignore:
Timestamp:
05/08/2013 01:07:53 PM (13 years ago)
Author:
Yuttadhammo
Message:

fixed group avatars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddypress-xml-rpc-receiver/trunk/bp-xmlrpc.php

    r708997 r709870  
    812812            return $this->error;
    813813
     814        $max = @$data['max']?(int)$data['max']:0;
     815
    814816        if ( $groups = groups_get_groups(
    815817            array(
    816818                'user_id' => (@$data['user']?$bp->loggedin_user->id:false),
    817                 'per_page' => (int)$data['max'],
     819                'per_page' => $max,
    818820                'page' => 1,
    819821                'populate_extras' => true
     
    828830                //add some new stuff
    829831                $group['group_domain'] = apply_filters( 'bp_get_group_permalink', bp_core_get_root_domain() . '/' . $bp->groups->slug . '/' . $group['slug'] . '/' );
    830                 $group['group_avatar'] = bp_core_fetch_avatar( array( 'item_id' => $group['id'], 'object' => 'group', 'type' => 'thumb', 'avatar_dir' => 'group-avatars', 'alt' => __( 'Group Avatar', 'bp-xmlrpc' ) ) );
     832                $group['avatar'] = array(
     833                    'full' => bp_core_fetch_avatar( array( 'item_id' => $group['id'], 'object' => 'group', 'avatar_dir' => 'group-avatars', 'alt' => __( 'Group Avatar', 'bp-xmlrpc' ), 'type' => 'full', 'width' => false, 'height' => false, 'html' => false ) ),
     834                    'thumb' => bp_core_fetch_avatar( array( 'item_id' => $group['id'], 'object' => 'group', 'avatar_dir' => 'group-avatars', 'alt' => __( 'Group Avatar', 'bp-xmlrpc' ), 'type' => 'thumb', 'width' => false, 'height' => false, 'html' => false ) )
     835                );
    831836
    832837                //dump this other stuff we don't need
Note: See TracChangeset for help on using the changeset viewer.