[ticket/11014] Restore template vars for next/previous links

They were dropped while the function was refactored:

If the block_var_name is a nested block, we will use the last (most inner)
block as a prefix for the template variables. If the last block name is
pagination, the prefix is empty. If the rest of the block_var_name is not
empty, we will modify the last row of that block and add our pagination items.

PHPBB3-11014
[ticket/11018] Always display previous/next links if we can display one

PHPBB3-11018
[ticket/11023] Fix additional whitespaces that were added by PHPBB3-10968

PHPBB3-11023
[ticket/11014] Fix text for previous/next links in Subsilver2

PHPBB3-11014
[ticket/11014] Fix IF statements for new template pagination

PHPBB3-11014
[ticket/11018] Fix several paginations in ACP

PHPBB3-11018
[ticket/11014] Fix old pagination assignment

PHPBB3-11014
Merge PR #918 branch 'Senky/ticket/10568' into develop-olympus

* Senky/ticket/10568:
  [ticket/10568] adding MESSAGE_EDITED to ucp.php and compose_pm
Merge PR #918 branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10568] adding MESSAGE_EDITED to ucp.php and compose_pm
[ticket/10848] Move include up.

PHPBB3-10848
Merge remote-tracking branch 'p/ticket/10848' into develop-olympus

* p/ticket/10848:
  [ticket/10848] Move include up.
  [ticket/10848] Add phpbb_ prefix.
  [ticket/10848] Redirect from adm to installer correctly.
Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10848] Move include up.
  [ticket/10848] Add phpbb_ prefix.
  [ticket/10848] Redirect from adm to installer correctly.

Conflicts:
	phpBB/includes/functions.php
Merge remote-tracking branch 'EXreaction/ticket/8796' into develop

* EXreaction/ticket/8796:
  [ticket/8796] Prevent setting post_time greater than time() in markread
  [ticket/8796] Fix a few issues with the previous commits
  [ticket/8796] Mark read links updated to include time() in url
  [ticket/8796] Revert changes to $user->data['lastmark']
  [ticket/8796] Make function markread obey the $post_time argument
Merge PR #971 branch 'nickvergessen/ticket/11018' into develop

* nickvergessen/ticket/11018:
  [ticket/11014] Fix old pagination assignment
  [ticket/11018] Fix several paginations in ACP
  [ticket/11014] Fix IF statements for new template pagination
  [ticket/11014] Fix text for previous/next links in Subsilver2
  [ticket/11023] Fix additional whitespaces that were added by PHPBB3-10968
  [ticket/11018] Always display previous/next links if we can display one
  [ticket/11014] Restore template vars for next/previous links
  [ticket/11018] Swap prev/next links on pagination to the old order
  [ticket/11067] Copy prosilver CSS to adm, so the pagination looks the same
  [ticket/11018] Fix minor issues with CSS in prosilver
  [ticket/11018] Attempt to fix li.pagination alignment issue
[ticket/11156] Delete "Misc" tab of forum based permissions + move items

PHPBB3-11156
Merge PR #1021 branch 'p/ticket/11156' into develop

* p/ticket/11156:
  [ticket/11156] Delete "Misc" tab of forum based permissions + move items
[ticket/11157] get_captcha_types is an instance method.

It is specific to a particular captcha factory implementation,
instantiate a captcha factory to invoke it.

PHPBB3-11157
[ticket/11157] Fix remaining captcha spam.

PHPBB3-11157
[ticket/11157] static public is the currently approved order.

PHPBB3-11157
[ticket/11159] static public is the currently approved order.

PHPBB3-11159