Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/index.php b/index.php
index 892050501c..bde70bb7ba 100644
--- a/index.php
+++ b/index.php
@@ -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();