Dotclear


Ignore:
Timestamp:
11/21/13 15:11:09 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Number of entries on first home page may be set (does not modify number of entries on other pages), fixes #1269

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/lib.tpl.context.php

    r2566 r2577  
    206206 
    207207          $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); 
    211209 
    212210          return $nb_pages; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map