Merge pull request #520 from TheSerapher/issue-513

Catch errors on missing templates
This commit is contained in:
Sebastian Grewe 2013-07-24 07:19:17 -07:00
commit 6a0253114f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
<div class="message {$smarty.session.POPUP[popup].TYPE|default:"success"}"><p>{$smarty.session.POPUP[popup].CONTENT}</p></div>
{/section}
{/if}
{include file="$PAGE/$ACTION/$CONTENT"}
{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}
</div>
<div class"clear"></div>
<div id="footer" style="font-size: 10px;">

View File

@ -47,7 +47,7 @@
</div>
{/if}
<div data-role="content">
{include file="$PAGE/$ACTION/$CONTENT"}
{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
{include file="global/footer.tpl"}