[ticket/9341] Correctly named template vars

PHPBB3-9341