mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/11843] Add checking DEFINE variables with underscores to template_test
To prevent the underscore in DEFINE variables from being forgotten again, the template tests now test INCLUDEing a file based on the contents of a DEFINE variable with underscores in it. PHPBB3-11843
This commit is contained in:
@@ -237,7 +237,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
|||||||
array('VARIABLE' => 'variable.html'),
|
array('VARIABLE' => 'variable.html'),
|
||||||
array(),
|
array(),
|
||||||
array(),
|
array(),
|
||||||
'variable.html',
|
'variable.htmlvariable.html',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'include_loop_define.html',
|
'include_loop_define.html',
|
||||||
|
@@ -1,2 +1,4 @@
|
|||||||
<!-- DEFINE $DEF = '{VARIABLE}' -->
|
<!-- DEFINE $DEF = '{VARIABLE}' -->
|
||||||
<!-- INCLUDE {$DEF} -->
|
<!-- INCLUDE {$DEF} -->
|
||||||
|
<!-- DEFINE $DEF_WITH_UNDERSCORES = '{VARIABLE}' -->
|
||||||
|
<!-- INCLUDE {$DEF_WITH_UNDERSCORES} -->
|
||||||
|
Reference in New Issue
Block a user