1
0
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:
rxu 2017-01-05 00:42:27 +07:00
parent 3d93fd40ed
commit 49c19a267f

View File

@ -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]))
{