From: Mischa POSLAWSKY Date: Sat, 30 Nov 2019 22:57:20 +0000 (+0100) Subject: page: reload error page within fail handler X-Git-Tag: v4.3~15 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/6413bd827c1245654f5cef0198ba5bb69a5f3863 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. --- 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]); }