diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-19 12:40:53 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-19 12:40:53 -0500 |
commit | 9152455d706adafa4e89bfdf6acc4b7c101f6f0a (patch) | |
tree | 9bf8e2e00c802bbe7fdb9e65da25f69bfda48a75 /tests/template | |
parent | 6ba2fb6d62bb1429665f9e1b4f22dd241508950b (diff) | |
download | forums-9152455d706adafa4e89bfdf6acc4b7c101f6f0a.tar forums-9152455d706adafa4e89bfdf6acc4b7c101f6f0a.tar.gz forums-9152455d706adafa4e89bfdf6acc4b7c101f6f0a.tar.bz2 forums-9152455d706adafa4e89bfdf6acc4b7c101f6f0a.tar.xz forums-9152455d706adafa4e89bfdf6acc4b7c101f6f0a.zip |
[ticket/11816] Fix multiple parenthesis as well before $VARs in templates
PHPBB3-11816
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template_test.php | 2 | ||||
-rw-r--r-- | tests/template/templates/define.html | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 2cca20f4c2..39eb08ab79 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -158,7 +158,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case array(), array('test_loop' => array(array(), array(), array(), array(), array(), array(), array()), 'test' => array(array()), 'test.deep' => array(array()), 'test.deep.defines' => array(array())), array(), - "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?[]|foobar|", + "xyz\nabc\n\$VALUE == 'abc'\n(\$VALUE == 'abc')\n((\$VALUE == 'abc'))\n!\$DOESNT_EXIST\n(!\$DOESNT_EXIST)\nabc\nbar\nbar\nabc\ntest!@#$%^&*()_-=+{}[]:;\",<.>/?[]|foobar|", ), array( 'define_advanced.html', diff --git a/tests/template/templates/define.html b/tests/template/templates/define.html index bc20c02ed1..e7ce7f7def 100644 --- a/tests/template/templates/define.html +++ b/tests/template/templates/define.html @@ -10,6 +10,9 @@ $VALUE == 'abc' <!-- IF ($VALUE == 'abc') --> ($VALUE == 'abc') <!-- ENDIF --> +<!-- IF (($VALUE == 'abc')) --> +(($VALUE == 'abc')) +<!-- ENDIF --> <!-- IF !$DOESNT_EXIST --> !$DOESNT_EXIST <!-- ENDIF --> |