mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10322] Separate template varref resolution from output generation
Most template variables can now have their PHP variable name resolved instead of only compiling directly. This allows for the use of block vars in INCLUDE statements. This does not work for language variables since they require multiple checks. Added tests for the new types of allowed INCLUDEs. PHPBB3-10322
This commit is contained in:
2
tests/template/templates/include_define.html
Normal file
2
tests/template/templates/include_define.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- DEFINE $DEF = 'variable.html' -->
|
||||
<!-- INCLUDE {$DEF} -->
|
4
tests/template/templates/include_loop.html
Normal file
4
tests/template/templates/include_loop.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<!-- BEGIN loop -->
|
||||
<!-- INCLUDE {loop.NESTED_FILE} -->
|
||||
<!-- BEGIN inner -->_<!-- INCLUDE {inner.NESTED_FILE} --><!-- END inner -->
|
||||
<!-- END loop -->
|
1
tests/template/templates/include_loop1.html
Normal file
1
tests/template/templates/include_loop1.html
Normal file
@@ -0,0 +1 @@
|
||||
1
|
1
tests/template/templates/include_loop2.html
Normal file
1
tests/template/templates/include_loop2.html
Normal file
@@ -0,0 +1 @@
|
||||
02
|
1
tests/template/templates/include_loop3.html
Normal file
1
tests/template/templates/include_loop3.html
Normal file
@@ -0,0 +1 @@
|
||||
3
|
@@ -1,3 +1 @@
|
||||
<!-- INCLUDE {FILE} -->
|
||||
<!-- DEFINE $DEF = 'variable.html' -->
|
||||
<!-- INCLUDE {$DEF} -->
|
Reference in New Issue
Block a user