Changeset 5729 for trunk/bp-blogs/bp-blogs-template.php
- Timestamp:
- 02/11/2012 09:32:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-template.php
r5686 r5729 117 117 $this->blogs = bp_blogs_get_blogs( array( 'type' => $type, 'per_page' => $this->pag_num, 'page' => $this->pag_page, 'user_id' => $user_id, 'search_terms' => $search_terms ) ); 118 118 119 if ( !$max || $max >= (int) $this->blogs['total'] )120 $this->total_blog_count = (int) $this->blogs['total'];119 if ( !$max || $max >= (int) $this->blogs['total'] ) 120 $this->total_blog_count = (int) $this->blogs['total']; 121 121 else 122 $this->total_blog_count = (int) $max;122 $this->total_blog_count = (int) $max; 123 123 124 124 $this->blogs = $this->blogs['blogs']; … … 128 128 $this->blog_count = count( $this->blogs ); 129 129 } else { 130 $this->blog_count = (int) $max;130 $this->blog_count = (int) $max; 131 131 } 132 132 } else { … … 134 134 } 135 135 136 if ( (int) $this->total_blog_count && (int)$this->pag_num ) {136 if ( (int) $this->total_blog_count && (int) $this->pag_num ) { 137 137 $this->pag_links = paginate_links( array( 138 138 'base' => add_query_arg( 'bpage', '%#%' ), 139 139 'format' => '', 140 'total' => ceil( (int) $this->total_blog_count / (int)$this->pag_num ),141 'current' => (int) $this->pag_page,140 'total' => ceil( (int) $this->total_blog_count / (int) $this->pag_num ), 141 'current' => (int) $this->pag_page, 142 142 'prev_text' => _x( '←', 'Blog pagination previous text', 'buddypress' ), 143 143 'next_text' => _x( '→', 'Blog pagination next text', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.