aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2017-05-21 14:57:40 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-11-01 12:29:47 +0100
commitbf882826e48d4f29ca4c48ecb7d65cbdf459d5fb (patch)
tree4de143053424317af4f4d53f3d52872def286ad6 /tests/template/templates
parente32324c72a33b9ef5baf5233a88963bc13066f8e (diff)
downloadforums-bf882826e48d4f29ca4c48ecb7d65cbdf459d5fb.tar
forums-bf882826e48d4f29ca4c48ecb7d65cbdf459d5fb.tar.gz
forums-bf882826e48d4f29ca4c48ecb7d65cbdf459d5fb.tar.bz2
forums-bf882826e48d4f29ca4c48ecb7d65cbdf459d5fb.tar.xz
forums-bf882826e48d4f29ca4c48ecb7d65cbdf459d5fb.zip
[ticket/14994] Refactor template->assign_block_var
Refactor assign_block_var to use the same block selection mechanism as is used in alter_block_array. This allows creating new blocks at any position in the template structure, not only on the last block. Allows selecting a block as outer[2].middle. Added tests. PHPBB3-14994
Diffstat (limited to 'tests/template/templates')
-rw-r--r--tests/template/templates/loop_nested.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/template/templates/loop_nested.html b/tests/template/templates/loop_nested.html
index cf099ecc15..5763262781 100644
--- a/tests/template/templates/loop_nested.html
+++ b/tests/template/templates/loop_nested.html
@@ -2,5 +2,8 @@
outer - {outer.S_ROW_COUNT}<!-- IF outer.VARIABLE --> - {outer.VARIABLE}<!-- ENDIF --><!-- IF TEST_MORE -->[{outer.S_BLOCK_NAME}|{outer.S_NUM_ROWS}]<!-- ENDIF -->
<!-- BEGIN middle -->
middle - {outer.middle.S_ROW_COUNT}<!-- IF outer.middle.VARIABLE --> - {outer.middle.VARIABLE}<!-- ENDIF --><!-- IF TEST_MORE -->[{outer.middle.S_BLOCK_NAME}|{outer.middle.S_NUM_ROWS}]<!-- ENDIF -->
+<!-- BEGIN inner -->
+inner - {outer.middle.inner.S_ROW_COUNT}<!-- IF outer.middle.inner.VARIABLE --> - {outer.middle.inner.VARIABLE}<!-- ENDIF --><!-- IF TEST_MORE -->[{outer.middle.inner.S_BLOCK_NAME}|{outer.middle.inner.S_NUM_ROWS}]<!-- ENDIF -->
+<!-- END inner -->
<!-- END middle -->
<!-- END outer -->