mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/15666] Fix array key in twig lang() call
This commit is contained in:
commit
d84af59cad
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class extension extends \Twig_Extension
|
||||||
|
|
||||||
$context_vars = $this->context->get_root_ref();
|
$context_vars = $this->context->get_root_ref();
|
||||||
|
|
||||||
if (isset($context_vars['L_' . $key]))
|
if (is_string($key) && isset($context_vars['L_' . $key]))
|
||||||
{
|
{
|
||||||
return $context_vars['L_' . $key];
|
return $context_vars['L_' . $key];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue