mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:10:13 +00:00
Add trace for admin in exceptionpages
- Fix exception message not showing on raw exception page
This commit is contained in:
parent
bac5159f6f
commit
3ebc0371b7
3 changed files with 14 additions and 2 deletions
|
@ -50,7 +50,13 @@ class HTTPException
|
|||
$message = $explanation[$e->getCode()] ?? '';
|
||||
}
|
||||
|
||||
return ['$title' => $title, '$message' => $message, '$back' => DI::l10n()->t('Go back')];
|
||||
$vars = ['$title' => $title, '$message' => $message, '$back' => DI::l10n()->t('Go back')];
|
||||
|
||||
if (is_site_admin()) {
|
||||
$vars['$trace'] = $e->getTraceAsString();
|
||||
}
|
||||
|
||||
return $vars;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue