| @@ 113-118 (lines=6) @@ | ||
| 110 | 'trace' => $trace, |
|
| 111 | 'httpHeader' => $httpHeader, |
|
| 112 | ); |
|
| 113 | if (file_exists(realpath(__DIR__) . '/errorviewdetailed.php')) { |
|
| 114 | include(realpath(__DIR__) . '/errorviewdetailed.php'); |
|
| 115 | } else { |
|
| 116 | header('Content-type: application/json'); |
|
| 117 | die(json_encode($error)); |
|
| 118 | } |
|
| 119 | exit; |
|
| 120 | } else { |
|
| 121 | if (file_exists(realpath(__DIR__) . '/errorviewcompact.php')) { |
|
| @@ 120-127 (lines=8) @@ | ||
| 117 | die(json_encode($error)); |
|
| 118 | } |
|
| 119 | exit; |
|
| 120 | } else { |
|
| 121 | if (file_exists(realpath(__DIR__) . '/errorviewcompact.php')) { |
|
| 122 | include(realpath(__DIR__) . '/errorviewcompact.php'); |
|
| 123 | } else { |
|
| 124 | header('Content-type: application/json'); |
|
| 125 | die(json_encode('An error occured.')); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||
| 130 | function canShowError() |
|