mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-16 04:19:41 +02:00
Merge remote-tracking branch 'cs278/ticket/10387' into develop
* cs278/ticket/10387: [ticket/10387] Add CURRENT_PAGE var to the template when pagination is used.
This commit is contained in:
commit
887a9e583f
@ -1951,6 +1951,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
|
||||
$tpl_prefix . 'PREVIOUS_PAGE' => ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page),
|
||||
$tpl_prefix . 'NEXT_PAGE' => ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page),
|
||||
$tpl_prefix . 'TOTAL_PAGES' => $total_pages,
|
||||
$tpl_prefix . 'CURRENT_PAGE' => $on_page,
|
||||
));
|
||||
|
||||
return $page_string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user