fix maybe
This commit is contained in:
parent
ab57907fb2
commit
9259a4c7d1
@ -1,8 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
register_shutdown_function(function() {
|
register_shutdown_function(function() {
|
||||||
$error = error_get_last();
|
$error = error_get_last();
|
||||||
if ($error['type'] == E_ERROR) {
|
if ($error['type'] == E_ERROR || $error['type'] == E_PARSE || $error['type'] == E_CORE_ERROR || $error['type'] == E_COMPILE_ERROR || $error['type'] == E_RECOVERABLE_ERROR) {
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
}
|
}
|
||||||
@ -17,6 +16,5 @@ $mvcController->executeModel();
|
|||||||
if(!isset($_POST['testaction'])){
|
if(!isset($_POST['testaction'])){
|
||||||
include_once("./view/content_pagetemplate.php");
|
include_once("./view/content_pagetemplate.php");
|
||||||
}
|
}
|
||||||
a
|
|
||||||
http_response_code(200);
|
http_response_code(200);
|
||||||
?>
|
?>
|
||||||
Loading…
x
Reference in New Issue
Block a user