<?php
$escape = function ($text) {
    return htmlspecialchars($text, ENT_QUOTES | ENT_HTML5 | ENT_SUBSTITUTE, 'UTF-8');
};
?>
<!DOCTYPE html>
<html>
<head>
    <title>Omeka S encountered an error</title>
</head>
<body>

<h1>Omeka S encountered an error</h1>
<?php if (ini_get('display_errors')): ?>
<p>
    <strong><?php echo $escape(get_class($e)); ?></strong><br>
    <?php echo $escape($e->getMessage()); ?>
</p>
<p>Details:</p>
<pre>
<?php echo $escape($e); ?>
</pre>
<?php else: ?>
<p>
To learn how to see more detailed information about this error, see the Omeka S User Manual page on
<a href="https://omeka.org/s/docs/user-manual/errorLogging/">retrieving error messages</a>.
</p>
<?php endif; ?>
</body>
</html>
