[ticket/12153] Remove vars already assigned in generate_template_pagination().

PHPBB3-12153
[ticket/12153] Remove redundant calls to pagination.on_page().

PHPBB3-12153
[ticket/12153] Adjust pagination tests.

PHPBB3-12153