From 6413bd827c1245654f5cef0198ba5bb69a5f3863 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 30 Nov 2019 23:57:20 +0100 Subject: [PATCH] page: reload error page within fail handler Catch errors during display (such as an invalid placeholder value fixed in the next commit) instead of ignoring subsequent displays causing empty output. --- page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page.php b/page.php index 4bea9c6..d2532a5 100644 --- a/page.php +++ b/page.php @@ -90,7 +90,7 @@ function fail($error) } include_once 'page.inc.php'; ob_start(); - require_once '500.inc.html'; + require '500.inc.html'; print getoutput(['debug' => $error]); } -- 2.30.0