[FIX] Empty / no template detection
This commit is contained in:
parent
bce47b72af
commit
d0e899b7d0
@ -51,7 +51,13 @@
|
|||||||
<h4 class="{$smarty.session.POPUP[popup].TYPE|default:"info"}">{$smarty.session.POPUP[popup].CONTENT}</h4>
|
<h4 class="{$smarty.session.POPUP[popup].TYPE|default:"info"}">{$smarty.session.POPUP[popup].CONTENT}</h4>
|
||||||
{/section}
|
{/section}
|
||||||
{/if}
|
{/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>
|
<div class="spacer"></div>
|
||||||
</section>
|
</section>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user