mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 04:55:12 +02:00
[ticket/15666] Fix array key in twig lang() call
PHPBB3-15666
This commit is contained in:
@ -172,7 +172,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];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user