[ticket/12100] Re-order arguments in template environment constructor

PHPBB3-12100