aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-04 13:22:41 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-04 13:22:41 -0500
commitfdbdd8bfd92795098b4f9a704a677972e611f455 (patch)
treefb7ac0b6d55eba8443641157a6b47814e4df8b95 /phpBB
parent4f6cb9acbdc8b3564fa30e8e291e5fa669a409b9 (diff)
downloadforums-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.php2
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