mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Merge pull request #5250 from senky/ticket/15666
[ticket/15666] Language system is not fully supported in Twig * github.com:/phpbb/phpbb: [ticket/15666] Fix array key in twig lang() call
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