From ee5d585fe980763eb6f0144c25b20474989bb32b Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 25 Sep 2011 13:11:24 +0100 Subject: [PATCH] [ticket/10387] Add CURRENT_PAGE var to the template when pagination is used. PHPBB3-10387 --- phpBB/includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 5ccb9edd07..822ac5b8d6 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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;