| @@ 6272-6282 (lines=11) @@ | ||
| 6269 | if (isset($actionName) && !empty($actionName)) { |
|
| 6270 | $source .= $actionName; |
|
| 6271 | } |
|
| 6272 | switch ($nr) { |
|
| 6273 | case E_DEPRECATED : |
|
| 6274 | case E_USER_DEPRECATED : |
|
| 6275 | case E_STRICT : |
|
| 6276 | case E_NOTICE : |
|
| 6277 | case E_USER_NOTICE : |
|
| 6278 | $error_level = 2; |
|
| 6279 | break; |
|
| 6280 | default: |
|
| 6281 | $error_level = 3; |
|
| 6282 | } |
|
| 6283 | $this->logEvent(0, $error_level, $str, $source); |
|
| 6284 | ||
| 6285 | if ($error_level === 2 && $this->error_reporting !== '99') { |
|
| @@ 91-104 (lines=14) @@ | ||
| 88 | ob_end_clean(); |
|
| 89 | if (isset($php_errormsg)) { |
|
| 90 | $error_info = error_get_last(); |
|
| 91 | switch ($error_info['type']) { |
|
| 92 | case E_NOTICE : |
|
| 93 | $error_level = 1; |
|
| 94 | case E_USER_NOTICE : |
|
| 95 | break; |
|
| 96 | case E_DEPRECATED : |
|
| 97 | case E_USER_DEPRECATED : |
|
| 98 | case E_STRICT : |
|
| 99 | $error_level = 2; |
|
| 100 | break; |
|
| 101 | default: |
|
| 102 | $error_level = 99; |
|
| 103 | } |
|
| 104 | if ($modx->config['error_reporting'] === '99' || 2 < $error_level) { |
|
| 105 | $modx->messageQuit('PHP Parse Error', '', true, $error_info['type'], $error_info['file'], |
|
| 106 | $_SESSION['itemname'] . ' - Module', $error_info['message'], $error_info['line'], $msg); |
|
| 107 | $modx->event->alert("An error occurred while loading. Please see the event log for more information<p>{$msg}</p>"); |
|