1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-20 07:30:16 +01:00

Merge pull request from rxu/ticket/14958

[ticket/14958] Optimize Twig extension lang() function
This commit is contained in:
Marc Alexander 2017-01-06 15:29:35 +01:00
commit 9d7acd1897
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

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