diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-04 13:22:41 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-04 13:22:41 -0500 |
commit | fdbdd8bfd92795098b4f9a704a677972e611f455 (patch) | |
tree | fb7ac0b6d55eba8443641157a6b47814e4df8b95 /phpBB | |
parent | 4f6cb9acbdc8b3564fa30e8e291e5fa669a409b9 (diff) | |
download | forums-fdbdd8bfd92795098b4f9a704a677972e611f455.tar forums-fdbdd8bfd92795098b4f9a704a677972e611f455.tar.gz forums-fdbdd8bfd92795098b4f9a704a677972e611f455.tar.bz2 forums-fdbdd8bfd92795098b4f9a704a677972e611f455.tar.xz forums-fdbdd8bfd92795098b4f9a704a677972e611f455.zip |
[feature/twig] Fix a regular expression
PHPBB3-11598
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/template/twig/lexer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template/twig/lexer.php b/phpBB/includes/template/twig/lexer.php index 50ef403231..394c3077a6 100644 --- a/phpBB/includes/template/twig/lexer.php +++ b/phpBB/includes/template/twig/lexer.php @@ -98,7 +98,7 @@ class phpbb_template_twig_lexer extends Twig_Lexer // Replace all of our escaped language variables, {LA_VARNAME}, with Twig style, {{ lang('NAME')|addslashes }} // Appends any filters after lang(), but before addslashes - $code = preg_replace('#{LA_([a-zA-Z0-9_\.]+)(\|[^}]+)?}}#', '{{ lang(\'$1\')$2|addslashes }}', $code); + $code = preg_replace('#{LA_([a-zA-Z0-9_\.]+)(\|[^}]+)?}#', '{{ lang(\'$1\')$2|addslashes }}', $code); // Replace all of our variables, {VARNAME}, with Twig style, {{ VARNAME }} // Appends any filters |