mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
Merge pull request #4613 from rxu/ticket/14958
[ticket/14958] Optimize Twig extension lang() function
This commit is contained in:
commit
9d7acd1897
1 changed files with 1 additions and 2 deletions
|
@ -169,8 +169,7 @@ class extension extends \Twig_Extension
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
$key = $args[0];
|
$key = $args[0];
|
||||||
|
|
||||||
$context = $this->context->get_data_ref();
|
$context_vars = $this->context->get_root_ref();
|
||||||
$context_vars = $context['.'][0];
|
|
||||||
|
|
||||||
if (isset($context_vars['L_' . $key]))
|
if (isset($context_vars['L_' . $key]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue