page: reload error page within fail handler
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 30 Nov 2019 22:57:20 +0000 (23:57 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 5 Dec 2019 18:02:07 +0000 (19:02 +0100)
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

index 4bea9c6d179369efd58a88ef2c32b2dd3028224c..d2532a5733eb64e9e6b83396bb4095e0606b634f 100644 (file)
--- 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]);
 }