Changeset 2863:c14573122523 for inc/public/lib.tpl.context.php
- Timestamp:
- 12/20/14 15:49:27 (11 years ago)
- Branch:
- 2.7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.tpl.context.php
r2802 r2863 216 216 217 217 $nb_posts = $_ctx->pagination->f(0); 218 $nb_pages = ceil(($nb_posts - $_ctx->nb_entry_first_page) / $_ctx->nb_entry_per_page + 1); 218 if (($GLOBALS['core']->url->type == 'default') || ($GLOBALS['core']->url->type == 'default-page')) { 219 $nb_pages = ceil(($nb_posts - $_ctx->nb_entry_first_page) / $_ctx->nb_entry_per_page + 1); 220 } else { 221 $nb_pages = ceil($nb_posts / $_ctx->nb_entry_per_page); 222 } 219 223 220 224 return $nb_pages;
Note: See TracChangeset
for help on using the changeset viewer.