aboutsummaryrefslogtreecommitdiff
path: root/templates/unhandled_exception.php
blob: e61438b9d6c76a0dd70ad17c1434f2214cc02742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * @var Throwable $exception
 */
$current_page = _('Fehler');

$title = _('Fehler! Bitte wenden Sie sich an Ihren Systemadministrator.');
$details = [htmlReady($exception->getMessage())];

if (Studip\ENV == 'development') {
    $title = "Houston, we've got a problem.";
    $details = [ExceptionDisplay::from($exception)->display(true, true)];
}
?>
    <?= MessageBox::exception($title, $details) ?>
    <p>
      <?= _('Zurück zur') ?> <a href="<?= URLHelper::getLink('index.php') ?>"><?= _('Startseite') ?></a>
    </p>