https://wiki.mahara.org/index.php?title=Developer_Area/Coding_guidelines/TPL_files&feed=atom&action=historyDeveloper Area/Coding guidelines/TPL files - Revision history2024-03-28T16:47:04ZRevision history for this page on the wikiMediaWiki 1.35.10https://wiki.mahara.org/index.php?title=Developer_Area/Coding_guidelines/TPL_files&diff=6940&oldid=prevSonn: Created page with "Misuse of the function empty() in the template files will cause errors. See more {http://www.smarty.net/forums/viewtopic.php?p=31665&sid=e4101928d307dbc8cac3041e2ae25d0f} Wro..."2015-09-06T23:30:20Z<p>Created page with "Misuse of the function empty() in the template files will cause errors. See more {http://www.smarty.net/forums/viewtopic.php?p=31665&sid=e4101928d307dbc8cac3041e2ae25d0f} Wro..."</p>
<p><b>New page</b></p><div>Misuse of the function empty() in the template files will cause errors.<br />
See more {http://www.smarty.net/forums/viewtopic.php?p=31665&sid=e4101928d307dbc8cac3041e2ae25d0f}<br />
<br />
Wrong:<br />
{if empty($artefacts)}<br />
...<br />
{/if}<br />
Good:<br />
{if !$artefacts}<br />
...<br />
{/if}</div>Sonn