diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-12-26 01:42:07 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-12-26 01:42:07 +0400 |
commit | 8318219cad363e3430080b0609fa281227dc7892 (patch) | |
tree | cfe882bba3ed267117b5b443c3a52a88f096ee76 /index.php | |
parent | 58ee8846720a23044695671564291ce31327eab2 (diff) |
Refs #4439 Registering the callback in the frontcontroller and using a static method rather than a closure
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -54,18 +54,7 @@ if (!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) { ExceptionHandler::setUp(); } -register_shutdown_function(function () { - - $lastError = error_get_last(); - - if (!empty($lastError) && $lastError['type'] == E_ERROR) { - $controller = FrontController::getInstance(); - $controller->init(); - $message = $controller->dispatch('CorePluginsAdmin', 'safemode', array($lastError)); - - echo $message; - } -}); +FrontController::setUpSafeMode(); if (!defined('PIWIK_ENABLE_DISPATCH') || PIWIK_ENABLE_DISPATCH) { $controller = FrontController::getInstance(); |