[ticket/12163] Use posts_per_page to calculate current page in viewtopic.php

http://tracker.phpbb.com/browse/PHPBB3-12163