mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
22 lines
484 B
PHP
22 lines
484 B
PHP
<?
|
|
|
|
if(!$exception){
|
|
return;
|
|
}
|
|
|
|
$exceptions = [];
|
|
|
|
if($exception instanceof Exceptions\ValidationException){
|
|
$exceptions = $exception->Exceptions;
|
|
}
|
|
else{
|
|
$exceptions[] = $exception;
|
|
}
|
|
?>
|
|
<ul class="message error">
|
|
<? foreach($exceptions as $ex){ ?>
|
|
<li>
|
|
<p><? $message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?><?= str_replace('CAPTCHA', '<abbr class="acronym">CAPTCHA</abbr>', Formatter::EscapeHtml($message)) ?></p>
|
|
</li>
|
|
<? } ?>
|
|
</ul>
|