Skip to content

Commit b06f7c3

Browse files
author
Phil E. Taylor
authored
Allow it to be a PHP file so that any post-processing, alerting etc can happen (#35352)
1 parent 1bf44a5 commit b06f7c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/system/fatal.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
*/
4141
if (file_exists(__DIR__ . '/fatal-error.custom.php'))
4242
{
43-
$template = file_get_contents(__DIR__ . '/fatal-error.custom.php');
43+
require __DIR__ . '/fatal-error.custom.php';
44+
45+
return;
4446
}
4547

4648
echo str_replace(

0 commit comments

Comments
 (0)