Skip to content

Commit

Permalink
[ticket/10387] Add CURRENT_PAGE var to the template when pagination i…
Browse files Browse the repository at this point in the history
…s used.

PHPBB3-10387
  • Loading branch information
cs278 committed Sep 25, 2011
1 parent 5e76803 commit ee5d585
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phpBB/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee5d585

Please sign in to comment.