Dotclear


Ignore:
Timestamp:
12/20/14 16:09:32 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.7
Message:

Pagination should take into account the lastn parameter specified in tpl:Entries tag if present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r2863 r2864  
    11181118                    // nb of entries per page specified in template -> regular pagination 
    11191119                    $p .= "\$params['limit'] = ".$lastn.";\n"; 
     1120                    $p .= "\$_ctx->nb_entry_first_page = \$_ctx->nb_entry_per_page = ".$lastn.";\n"; 
    11201121               } else { 
    11211122                    // nb of entries per page not specified -> use ctx settings 
Note: See TracChangeset for help on using the changeset viewer.

Sites map