[ticket/12153] Assign PAGE_NUMBER in pagination.generate_template_pagination()

http://tracker.phpbb.com/browse/PHPBB3-12153
http://tracker.phpbb.com/browse/PHPBB3-12149