<feed xmlns='http://www.w3.org/2005/Atom'>
<title>forums/tests/template/templates/if.html, branch master</title>
<subtitle>The forums.mageia.org Website</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/'/>
<entry>
<title>[ticket/7580] Add test for IF {VAR} is defined in templates</title>
<updated>2014-03-17T03:38:50+00:00</updated>
<author>
<name>Matt Friedman</name>
<email>maf675@gmail.com</email>
</author>
<published>2014-03-17T03:38:50+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23'/>
<id>d8c1c7fb9aa2aa6d76c4e9769f1bb2c135909b23</id>
<content type='text'>
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.
&lt;!— IF {VAR} is defined —&gt;{VAR}&lt;!— ENDIF —&gt;

PHPBB3-7580
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
&lt;!— IF {VAR} is defined —&gt;{VAR}&lt;!— ENDIF —&gt;

PHPBB3-7580
</pre>
</div>
</content>
</entry>
<entry>
<title>[ticket/11724] Support "ELSE IF" and "ELSEIF" in the same way</title>
<updated>2013-07-28T01:02:03+00:00</updated>
<author>
<name>Nathan Guse</name>
<email>nathaniel.guse@gmail.com</email>
</author>
<published>2013-07-28T01:02:03+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=d5c56c5d503ea4b12852866e2d3b956e92a92aea'/>
<id>d5c56c5d503ea4b12852866e2d3b956e92a92aea</id>
<content type='text'>
PHPBB3-11724
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-11724
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature/twig] Add template test for ===, !==</title>
<updated>2013-07-05T15:29:24+00:00</updated>
<author>
<name>Nathan Guse</name>
<email>nathaniel.guse@gmail.com</email>
</author>
<published>2013-07-05T15:29:24+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=1f4a717f9ec925d84b589547ce6c93a17ae863e9'/>
<id>1f4a717f9ec925d84b589547ce6c93a17ae863e9</id>
<content type='text'>
PHPBB3-11598
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-11598
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature/template-engine] Fix negative variable expressions</title>
<updated>2011-04-26T03:19:36+00:00</updated>
<author>
<name>Igor Wiedler</name>
<email>igor@wiedler.ch</email>
</author>
<published>2011-04-26T00:09:51+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=427a5122d55f06c861277297411f7e39a03a703c'/>
<id>427a5122d55f06c861277297411f7e39a03a703c</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature/template-engine] Update tests.</title>
<updated>2011-04-24T02:48:50+00:00</updated>
<author>
<name>Marek A. Ruszczynski</name>
<email>aptx@phpbb.com</email>
</author>
<published>2011-03-07T15:52:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=4b646c6c80712bbbc0737defc48f6fbb05bac0f3'/>
<id>4b646c6c80712bbbc0737defc48f6fbb05bac0f3</id>
<content type='text'>
PHPBB3-9726
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-9726
</pre>
</div>
</content>
</entry>
<entry>
<title>[develop-olympus] Backported 3.1 unit tests to 3.0.</title>
<updated>2010-03-10T15:24:19+00:00</updated>
<author>
<name>Nils Adermann</name>
<email>naderman@naderman.de</email>
</author>
<published>2010-03-10T15:24:19+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=60bd1edcb5e5992e6e693d0f68db47e678f7d54a'/>
<id>60bd1edcb5e5992e6e693d0f68db47e678f7d54a</id>
<content type='text'>
Start adding unit tests for bugs you fix! Tests for anything are
welcome really. We have to work on these a lot.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Start adding unit tests for bugs you fix! Tests for anything are
welcome really. We have to work on these a lot.
</pre>
</div>
</content>
</entry>
</feed>
