@@ 223-235 (lines=13) @@ | ||
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->getConfig('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); |
@@ 332-342 (lines=11) @@ | ||
329 | if (isset($actionName) && !empty($actionName)) { |
|
330 | $source .= $actionName; |
|
331 | } |
|
332 | switch ($nr) { |
|
333 | case E_DEPRECATED : |
|
334 | case E_USER_DEPRECATED : |
|
335 | case E_STRICT : |
|
336 | case E_NOTICE : |
|
337 | case E_USER_NOTICE : |
|
338 | $error_level = 2; |
|
339 | break; |
|
340 | default: |
|
341 | $error_level = 3; |
|
342 | } |
|
343 | ||
344 | if ($this->container->getDatabase()->getDriver()->isConnected()) { |
|
345 | $this->container->logEvent(0, $error_level, $str, $source); |