[ticket/12957] Update the constructions of the template engine

PHPBB3-12957
[ticket/12957] Removed unused use

PHPBB3-12957
Merge pull request #2859 from Nicofuma/ticket/12957

[ticket/12957] Update the constructions of the template engine