mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Fix error handling for duplicate ebook placeholders
This commit is contained in:
parent
047a76b788
commit
d9fe3e9303
3 changed files with 17 additions and 15 deletions
|
@ -3,8 +3,6 @@
|
|||
* @var ?Exception $exception
|
||||
*/
|
||||
|
||||
use Exceptions\AppException;
|
||||
|
||||
if($exception === null){
|
||||
return;
|
||||
}
|
||||
|
@ -26,7 +24,7 @@ else{
|
|||
$message = 'An error occurred.';
|
||||
}
|
||||
|
||||
if(!($ex instanceof AppException) || $ex->MessageType == Enums\ExceptionMessageType::Text){
|
||||
if(!($ex instanceof Exceptions\AppException) || $ex->MessageType == Enums\ExceptionMessageType::Text){
|
||||
$message = '<p>' . str_replace('CAPTCHA', '<abbr class="acronym">CAPTCHA</abbr>', Formatter::EscapeHtml($message)) . '</p>';
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue