aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates/if.html
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/7580] Add test for IF {VAR} is defined in templatesMatt Friedman2014-03-161-0/+4
| | | | | | | | | | 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
* [ticket/11724] Support "ELSE IF" and "ELSEIF" in the same wayNathan Guse2013-07-271-0/+2
| | | | PHPBB3-11724
* [feature/twig] Add template test for ===, !==Nathan Guse2013-07-051-0/+8
| | | | PHPBB3-11598
* [feature/template-engine] Fix negative variable expressionsIgor Wiedler2011-04-251-1/+1
| | | | | | | | | | | | | compile_tag_if had the flawed approach of adding an isset statement for all variables to the beginning of the if. This fails for negative expressions, and checking those takes a considerable effort. The easier solution is to make the variable expression itself conditional, defaulting to null if it is not set. Thanks to naderman for the solution. PHPBB3-9726
* [feature/template-engine] Update tests.Marek A. Ruszczynski2011-04-231-2/+2
| | | | PHPBB3-9726
* [develop-olympus] Backported 3.1 unit tests to 3.0.Nils Adermann2010-03-101-0/+11
Start adding unit tests for bugs you fix! Tests for anything are welcome really. We have to work on these a lot.