[ticket/12153] Replace old template variables with {PAGE_NUMBER}.

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