mirror of
https://github.com/friendica/friendica
synced 2024-12-22 20:00:16 +00:00
fix non-capturing catch for PHP 7.4 support
This commit is contained in:
parent
b55dc0ac48
commit
f36e118609
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class HTTPException
|
||||||
try {
|
try {
|
||||||
$tpl = Renderer::getMarkupTemplate('http_status.tpl');
|
$tpl = Renderer::getMarkupTemplate('http_status.tpl');
|
||||||
$content = Renderer::replaceMacros($tpl, $vars);
|
$content = Renderer::replaceMacros($tpl, $vars);
|
||||||
} catch (Throwable) {
|
} catch (Throwable $th) {
|
||||||
$vars = array_map('htmlentities', $vars);
|
$vars = array_map('htmlentities', $vars);
|
||||||
$content = "<h1>{$vars['$title']}</h1><p>{$vars['$message']}</p>";
|
$content = "<h1>{$vars['$title']}</h1><p>{$vars['$message']}</p>";
|
||||||
if ($this->isSiteAdmin) {
|
if ($this->isSiteAdmin) {
|
||||||
|
|
Loading…
Reference in a new issue