diff options
author | Tristan Darricau <tristan.darricau@gmail.com> | 2018-07-08 18:42:26 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@gmail.com> | 2018-07-08 18:42:26 +0200 |
commit | 71905e50e8663a960328a272c79f083d505076b4 (patch) | |
tree | 1ab36be597524dd50a7ee0bfe30cbcd526c26497 | |
parent | 0e580d2ab019cff841c4888756cf110289ac146c (diff) | |
parent | 52f5e54d8a2a328123485272f18917199e06ec30 (diff) | |
download | forums-71905e50e8663a960328a272c79f083d505076b4.tar forums-71905e50e8663a960328a272c79f083d505076b4.tar.gz forums-71905e50e8663a960328a272c79f083d505076b4.tar.bz2 forums-71905e50e8663a960328a272c79f083d505076b4.tar.xz forums-71905e50e8663a960328a272c79f083d505076b4.zip |
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
-rw-r--r-- | phpBB/phpbb/template/twig/extension.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/twig/extension.php b/phpBB/phpbb/template/twig/extension.php index 1aa7717470..f6f8e03ca2 100644 --- a/phpBB/phpbb/template/twig/extension.php +++ b/phpBB/phpbb/template/twig/extension.php @@ -172,7 +172,7 @@ class extension extends \Twig_Extension $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]; } |