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 'console')
-rwxr-xr-xconsole7
1 files changed, 7 insertions, 0 deletions
diff --git a/console b/console
index e3738ab10a..1b4d7c7e08 100755
--- a/console
+++ b/console
@@ -25,5 +25,12 @@ if (!Piwik\Common::isPhpCliMode()) {
exit;
}
+if (!defined('PIWIK_ENABLE_ERROR_HANDLER') || PIWIK_ENABLE_ERROR_HANDLER) {
+ require_once PIWIK_INCLUDE_PATH . '/core/Error.php';
+ \Piwik\Error::setErrorHandler();
+ require_once PIWIK_INCLUDE_PATH . '/core/ExceptionHandler.php';
+ \Piwik\ExceptionHandler::setUp();
+}
+
$console = new Piwik\Console();
$console->run(); \ No newline at end of file