aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2014-03-16 20:38:50 -0700
committerMatt Friedman <maf675@gmail.com>2014-03-16 20:38:50 -0700
commitd8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23 (patch)
treefd549894f2f6680974380a57b96b958624540eaf /tests/template/templates
parentf9438bcbf700b9d237791390c0ec6aca461e8fd7 (diff)
downloadforums-d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23.tar
forums-d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23.tar.gz
forums-d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23.tar.bz2
forums-d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23.tar.xz
forums-d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23.zip
[ticket/7580] Add test for IF {VAR} is defined in templates
http://tracker.phpbb.com/browse/PHPBB3-7580 This test demonstrates that is possible to test if a variable exists and then use it if it does, similar to using isset(), but in template/twig syntax. <!— IF {VAR} is defined —>{VAR}<!— ENDIF —> PHPBB3-7580
Diffstat (limited to 'tests/template/templates')
-rw-r--r--tests/template/templates/if.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/template/templates/if.html b/tests/template/templates/if.html
index f6ab6e575a..71312f994c 100644
--- a/tests/template/templates/if.html
+++ b/tests/template/templates/if.html
@@ -19,3 +19,7 @@ false
<!-- IF S_TEST !== false -->
!false
<!-- ENDIF -->
+
+<!-- IF VALUE_TEST is defined -->
+{VALUE_TEST}
+<!-- ENDIF -->