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 'piwik.php')
-rw-r--r--piwik.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/piwik.php b/piwik.php
index c1af709e2c..100cc5e072 100644
--- a/piwik.php
+++ b/piwik.php
@@ -52,7 +52,11 @@ require_once PIWIK_INCLUDE_PATH . '/core/Cookie.php';
SettingsServer::setIsTrackerApiRequest();
$environment = new \Piwik\Application\Environment('tracker');
-$environment->init();
+try {
+ $environment->init();
+} catch(\Piwik\Exception\NotYetInstalledException $e) {
+ die($e->getMessage());
+}
Tracker::loadTrackerEnvironment();