git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
90195dc
)
page: reload error page within fail handler
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 30 Nov 2019 22:57:20 +0000
(23:57 +0100)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/page.php
b/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]);
}