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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-24 08:47:46 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-24 08:47:46 +0400
commit13f27b3b03abb2ffd06b8eeefcb79b8af98f1e9c (patch)
tree285a3bdae3f87f4d818ccff3d999588e9cd19495 /index.php
parent2cb3bca565e0251fa7ecd74246d05f4cbdc1aa61 (diff)
Fixing ErrorHandler stuff.
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 4347ddd41d..0839100d32 100644
--- a/index.php
+++ b/index.php
@@ -9,6 +9,7 @@
*/
use Piwik\FrontController;
+use Piwik\Error;
define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));
if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) {
@@ -39,9 +40,10 @@ require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';
require_once PIWIK_INCLUDE_PATH . '/core/functions.php';
if (!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) {
- require_once PIWIK_INCLUDE_PATH . '/core/ErrorHandler.php';
+ require_once PIWIK_INCLUDE_PATH . '/core/Error.php';
+ Error::setErrorHandler();
+
require_once PIWIK_INCLUDE_PATH . '/core/ExceptionHandler.php';
- set_error_handler('Piwik_ErrorHandler');
set_exception_handler('Piwik_ExceptionHandler');
}