[ticket/9341] Correctly named template vars

PHPBB3-9341
[ticket/9341] Use U_PREVIOUS and U_NEXT in template files

PHPBB3-9341