Changeset 1371 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 04/22/2009 09:05:31 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-templatetags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r1366 r1371 768 768 global $bp, $bp_the_member_query; 769 769 770 $this->pag_page = isset( $_REQUEST[' page'] ) ? intval( $_REQUEST['page'] ) : 1;770 $this->pag_page = isset( $_REQUEST['upage'] ) ? intval( $_REQUEST['upage'] ) : 1; 771 771 $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $per_page; 772 772 … … 809 809 810 810 $this->members = $this->members['users']; 811 $this->member_count = count($this->members); 812 811 812 if ( $max ) { 813 if ( $max >= count($this->members) ) 814 $this->member_count = count($this->members); 815 else 816 $this->member_count = (int)$max; 817 } else { 818 $this->member_count = count($this->members); 819 } 820 813 821 $this->pag_links = paginate_links( array( 814 'base' => add_query_arg( ' page', '%#%' ),822 'base' => add_query_arg( 'upage', '%#%' ), 815 823 'format' => '', 816 824 'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
Note: See TracChangeset
for help on using the changeset viewer.