1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/15372] Fix pagination and don't render viewtopic link

This commit is contained in:
David Colón
2017-09-24 22:07:25 -04:00
parent e55480385b
commit 2ba529e144
2 changed files with 7 additions and 2 deletions

View File

@@ -136,6 +136,11 @@ class pagination
*/
public function generate_template_pagination($base_url, $block_var_name, $start_name, $num_items, $per_page, $start = 1, $reverse_count = false, $ignore_on_page = false)
{
if (empty($base_url))
{
return;
}
$total_pages = ceil($num_items / $per_page);
$on_page = $this->get_on_page($per_page, $start);
$u_previous_page = $u_next_page = '';