[ticket/11707] Twig DEFINE not working as expected

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