| 1 | {if !$title|empty} |
| 2 | {capture assign='pageTitle'}{$title}{/capture} |
| 3 | {capture assign='contentTitle'}{$title}{/capture} |
| 4 | {else} |
| 5 | {capture assign='pageTitle'}{lang}wcf.global.error.title{/lang}{/capture} |
| 6 | {capture assign='contentTitle'}{lang}wcf.global.error.title{/lang}{/capture} |
| 7 | {/if} |
| 8 | |
| 9 | {include file='header' __disableAds=true} |
| 10 | |
| 11 | <div class="section"> |
| 12 | <div class="box64 userException"> |
| 13 | {icon size=64 name='circle-exclamation'} |
| 14 | <p id="errorMessage" class="fullPageErrorMessage userExceptionMessage" data-exception-class-name="{$exceptionClassName}"> |
| 15 | {@$message} |
| 16 | </p> |
| 17 | </div> |
| 18 | </div> |
| 19 | |
| 20 | <script data-relocate="true"> |
| 21 | if (document.referrer) { |
| 22 | $('#errorMessage').append('<br><br><a href="' + document.referrer + '">{lang}wcf.page.error.backward{/lang}</a>'); |
| 23 | } |
| 24 | </script> |
| 25 | |
| 26 | {if ENABLE_DEBUG_MODE} |
| 27 | <!-- |
| 28 | {$name} thrown in {$file} ({@$line}) |
| 29 | Stacktrace: |
| 30 | {$stacktrace} |
| 31 | --> |
| 32 | <script> |
| 33 | console.debug('{$name|encodeJS} thrown in {$file|encodeJS} ({@$line})'); |
| 34 | console.debug('Stacktrace:\n{@$stacktrace|encodeJS}'); |
| 35 | </script> |
| 36 | {/if} |
| 37 | |
| 38 | {include file='footer' __disableAds=true} |