mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11018] Swap prev/next links on pagination to the old order
In the old pagination Prev was left of the pagination and Next right of the pagination. While moving these blocks, I also removed the whitespaces, which were introduced. PHPBB3-11023 PHPBB3-11018
This commit is contained in:
parent
43a713ea83
commit
fa5753de70
1 changed files with 8 additions and 8 deletions
|
@ -2112,14 +2112,14 @@ function phpbb_generate_template_pagination($template, $base_url, $block_var_nam
|
||||||
$end_page = ($total_pages > 5) ? max(min($total_pages, $on_page + 3), 5) : $total_pages;
|
$end_page = ($total_pages > 5) ? max(min($total_pages, $on_page + 3), 5) : $total_pages;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($on_page != $total_pages)
|
if ($on_page != 1)
|
||||||
{
|
{
|
||||||
$template->assign_block_vars($block_var_name, array(
|
$template->assign_block_vars($block_var_name, array(
|
||||||
'PAGE_NUMBER' => '',
|
'PAGE_NUMBER' => '',
|
||||||
'PAGE_URL' => $base_url . $url_delim . $start_name . '=' . ($on_page * $per_page),
|
'PAGE_URL' => $base_url . $url_delim . $start_name . '=' . (($on_page - 2) * $per_page),
|
||||||
'S_IS_CURRENT' => false,
|
'S_IS_CURRENT' => false,
|
||||||
'S_IS_PREV' => false,
|
'S_IS_PREV' => true,
|
||||||
'S_IS_NEXT' => true,
|
'S_IS_NEXT' => false,
|
||||||
'S_IS_ELLIPSIS' => false,
|
'S_IS_ELLIPSIS' => false,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -2166,14 +2166,14 @@ function phpbb_generate_template_pagination($template, $base_url, $block_var_nam
|
||||||
}
|
}
|
||||||
while ($at_page <= $total_pages);
|
while ($at_page <= $total_pages);
|
||||||
|
|
||||||
if ($on_page != 1)
|
if ($on_page != $total_pages)
|
||||||
{
|
{
|
||||||
$template->assign_block_vars($block_var_name, array(
|
$template->assign_block_vars($block_var_name, array(
|
||||||
'PAGE_NUMBER' => '',
|
'PAGE_NUMBER' => '',
|
||||||
'PAGE_URL' => $base_url . $url_delim . $start_name . '=' . (($on_page - 2) * $per_page),
|
'PAGE_URL' => $base_url . $url_delim . $start_name . '=' . ($on_page * $per_page),
|
||||||
'S_IS_CURRENT' => false,
|
'S_IS_CURRENT' => false,
|
||||||
'S_IS_PREV' => true,
|
'S_IS_PREV' => false,
|
||||||
'S_IS_NEXT' => false,
|
'S_IS_NEXT' => true,
|
||||||
'S_IS_ELLIPSIS' => false,
|
'S_IS_ELLIPSIS' => false,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue