Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2010 03:52:16 PM (15 years ago)
Author:
apeatling
Message:

Fixes to group invite interface and template loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r2270 r2339  
    6969
    7070            case 'invites':
    71                 if ( $user_id )
    72                     $this->groups = groups_get_invites_for_user();
     71                $this->groups = groups_get_invites_for_user( $user_id, $this->pag_num, $this->pag_page );
    7372                break;
    7473
     
    8180
    8281        if ( 'invites' == $type ) {
    83             $this->total_group_count = count($this->groups);
    84             $this->group_count = count($this->groups);
     82            $this->total_group_count = (int)$this->groups['total'];
     83            $this->group_count = (int)$this->groups['total'];
     84            $this->groups = $this->groups['groups'];
    8585        } else if ( 'single-group' == $type ) {
    8686            $this->single_group = true;
Note: See TracChangeset for help on using the changeset viewer.