Changeset 7141 for trunk/bp-groups/bp-groups-template.php
- Timestamp:
- 06/03/2013 05:12:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r7091 r7141 1898 1898 var $total_group_count; 1899 1899 1900 function __construct( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude ) {1900 function __construct( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude, $group_role = false ) { 1901 1901 1902 1902 $this->pag_page = isset( $_REQUEST['mlpage'] ) ? intval( $_REQUEST['mlpage'] ) : 1; 1903 1903 $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $per_page; 1904 $this->members = BP_Groups_Member::get_all_for_group( $group_id, $this->pag_num, $this->pag_page, $exclude_admins_mods, $exclude_banned, $exclude );1904 $this->members = groups_get_group_members( $group_id, $this->pag_num, $this->pag_page, $exclude_admins_mods, $exclude_banned, $exclude, $group_role ); 1905 1905 1906 1906 if ( !$max || $max >= (int) $this->members['count'] ) … … 1984 1984 'exclude' => false, 1985 1985 'exclude_admins_mods' => 1, 1986 'exclude_banned' => 1 1986 'exclude_banned' => 1, 1987 'group_role' => false, 1987 1988 ) ); 1988 1989 1989 $members_template = new BP_Groups_Group_Members_Template( $r['group_id'], $r['per_page'], $r['max'], (int) $r['exclude_admins_mods'], (int) $r['exclude_banned'], $r['exclude'] );1990 $members_template = new BP_Groups_Group_Members_Template( $r['group_id'], $r['per_page'], $r['max'], (int) $r['exclude_admins_mods'], (int) $r['exclude_banned'], $r['exclude'], $r['group_role'] ); 1990 1991 return apply_filters( 'bp_group_has_members', $members_template->has_members(), $members_template ); 1991 1992 }
Note: See TracChangeset
for help on using the changeset viewer.