<!-- BEGIN {$smarty.template} -->

<div class="{if (isset($type_err) && $type_err)}err{else}info{/if}msg">
  <div>{$TITLE|wash}</div>
  {$MESSAGE|wash|nl2br}
  {if $smarty.const.PHPAGA_ERR_VERBOSE && isset($debugmessage) && strlen($debugmessage)}
  <h2>{t}Debug message{/t}</h2>
  {$debugmessage|wash|nl2br}
  {/if}
  {if $smarty.const.PHPAGA_ERR_VERBOSE && isset($backtrace) && count($backtrace)}
  <h2>{t}Backtrace{/t}</h2>
  {foreach from=$backtrace item=b}
  {t}File{/t}: {$b.file|wash},
  {t}Line{/t}: {$b.line|wash},
  {t}Function{/t}: {$b.function|wash}
  {if isset($b.class) && strlen($b.class)}
  , {t}Class{/t}: {$b.class|wash}
  {/if}
  {if isset($b.type) && strlen($b.type)}
  , {t}Type{/t}: {$b.type|wash}
  {/if}
  <br>
  {/foreach}
  {/if}
</div>

<!-- END {$smarty.template} -->
