Merge pull request #520 from TheSerapher/issue-513
Catch errors on missing templates
This commit is contained in:
commit
6a0253114f
@ -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;">
|
||||
|
||||
@ -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"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user