mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-20 23:51:28 +01:00
[ticket/14958] Optimize Twig extension lang() function
PHPBB3-14958
This commit is contained in:
parent
3d93fd40ed
commit
49c19a267f
@ -169,8 +169,7 @@ class extension extends \Twig_Extension
|
||||
$args = func_get_args();
|
||||
$key = $args[0];
|
||||
|
||||
$context = $this->context->get_data_ref();
|
||||
$context_vars = $context['.'][0];
|
||||
$context_vars = $this->context->get_root_ref();
|
||||
|
||||
if (isset($context_vars['L_' . $key]))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user