mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-27 10:14:47 +02:00
[ticket/13616] Updates direct call to twig environment constructor
PHPBB3-13616
This commit is contained in:
@@ -158,7 +158,6 @@ Zeta test event in all',
|
||||
$config,
|
||||
$filesystem,
|
||||
$path_helper,
|
||||
$container,
|
||||
$cache_path,
|
||||
$this->extension_manager,
|
||||
$loader,
|
||||
@@ -170,7 +169,7 @@ Zeta test event in all',
|
||||
)
|
||||
);
|
||||
$this->template = new \phpbb\template\twig\twig($path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $this->user)), $this->extension_manager);
|
||||
$container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
|
||||
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
|
||||
|
||||
$this->template->set_custom_style(((!empty($style_names)) ? $style_names : 'silver'), array($this->template_path));
|
||||
}
|
||||
|
Reference in New Issue
Block a user