mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-20 07:30:16 +01:00
Merge pull request #4613 from rxu/ticket/14958
[ticket/14958] Optimize Twig extension lang() function
This commit is contained in:
commit
9d7acd1897
@ -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