aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2014-03-13 19:48:07 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2014-03-13 19:48:07 -0500
commita45aa2e5a009747f61b2c7546fbbc64fdd5f6798 (patch)
treebd63bee31f26696e964f432bcf5e5483f4d610f0 /tests/template/templates
parent052bbf654f4c1f60b58a622250ef97bc1e036426 (diff)
downloadforums-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.tar
forums-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.tar.gz
forums-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.tar.bz2
forums-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.tar.xz
forums-a45aa2e5a009747f61b2c7546fbbc64fdd5f6798.zip
[ticket/10288] Test to make sure included templates have proper variable scope
PHPBB3-10288
Diffstat (limited to 'tests/template/templates')
-rw-r--r--tests/template/templates/loop_include.html4
-rw-r--r--tests/template/templates/loop_include1.html1
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/template/templates/loop_include.html b/tests/template/templates/loop_include.html
new file mode 100644
index 0000000000..7bbdfc4248
--- /dev/null
+++ b/tests/template/templates/loop_include.html
@@ -0,0 +1,4 @@
+<!-- BEGIN test_loop -->
+{test_loop.foo}
+ <!-- INCLUDE loop_include1.html -->
+<!-- END test_loop -->
diff --git a/tests/template/templates/loop_include1.html b/tests/template/templates/loop_include1.html
new file mode 100644
index 0000000000..851f6e6e75
--- /dev/null
+++ b/tests/template/templates/loop_include1.html
@@ -0,0 +1 @@
+{test_loop.foo}