Changeset 2577:9a2b43a68e3d for inc/public/lib.tpl.context.php
- Timestamp:
- 11/21/13 15:11:09 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.tpl.context.php
r2566 r2577 206 206 207 207 $nb_posts = $_ctx->pagination->f(0); 208 $nb_per_page = $_ctx->post_params['limit'][1]; 209 210 $nb_pages = ceil($nb_posts/$nb_per_page); 208 $nb_pages = ceil(($nb_posts - $_ctx->nb_entry_first_page) / $_ctx->nb_entry_per_page + 1); 211 209 212 210 return $nb_pages;
Note: See TracChangeset
for help on using the changeset viewer.