| @@ 223-236 (lines=14) @@ | ||
| 220 | ob_end_clean(); | |
| 221 |         if (isset($php_errormsg)) { | |
| 222 | $error_info = error_get_last(); | |
| 223 |             switch ($error_info['type']) { | |
| 224 | case E_NOTICE : | |
| 225 | $error_level = 1; | |
| 226 | case E_USER_NOTICE : | |
| 227 | break; | |
| 228 | case E_DEPRECATED : | |
| 229 | case E_USER_DEPRECATED : | |
| 230 | case E_STRICT : | |
| 231 | $error_level = 2; | |
| 232 | break; | |
| 233 | default: | |
| 234 | $error_level = 99; | |
| 235 | } | |
| 236 |             if ($modx->config['error_reporting'] === '99' || 2 < $error_level) { | |
| 237 |                 $modx->messageQuit('PHP Parse Error', '', true, $error_info['type'], $error_info['file'], | |
| 238 | $_SESSION['itemname'] . ' - Module', $error_info['message'], $error_info['line'], $msg); | |
| 239 |                 $modx->event->alert("An error occurred while loading. Please see the event log for more information<p>{$msg}</p>"); | |
| @@ 6325-6335 (lines=11) @@ | ||
| 6322 |         if (isset($actionName) && !empty($actionName)) { | |
| 6323 | $source .= $actionName; | |
| 6324 | } | |
| 6325 |         switch ($nr) { | |
| 6326 | case E_DEPRECATED : | |
| 6327 | case E_USER_DEPRECATED : | |
| 6328 | case E_STRICT : | |
| 6329 | case E_NOTICE : | |
| 6330 | case E_USER_NOTICE : | |
| 6331 | $error_level = 2; | |
| 6332 | break; | |
| 6333 | default: | |
| 6334 | $error_level = 3; | |
| 6335 | } | |
| 6336 | $this->logEvent(0, $error_level, $str, $source); | |
| 6337 | ||
| 6338 |         if ($error_level === 2 && $this->error_reporting !== '99') { | |