[FIX] Empty / no template detection

This commit is contained in:
Sebastian Grewe 2014-01-06 12:00:48 +01:00
parent bce47b72af
commit d0e899b7d0

View File

@ -51,7 +51,13 @@
<h4 class="{$smarty.session.POPUP[popup].TYPE|default:"info"}">{$smarty.session.POPUP[popup].CONTENT}</h4>
{/section}
{/if}
{if $CONTENT != "empty" or $CONTENT != ""}{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}{/if}
{if $CONTENT != "empty" && $CONTENT != ""}
{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}
{include file="$PAGE/$ACTION/$CONTENT"}
{else}
Missing template for this page
{/if}
{/if}
<div class="spacer"></div>
</section>
<footer class="footer">