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
path: root/core
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2014-12-15 06:10:11 +0300
committerMatthieu Aubry <matt@piwik.org>2014-12-15 06:10:11 +0300
commit4c079dbe2eecf514a878f8075e7b23a3c447498e (patch)
treee94898706531a1e4cdf9b91bca105b34ec0cd3bb /core
parentf41b9b3b30f1864190b375e636c128d7dadbad84 (diff)
parent2e9a262f59e2ae86a1d596cbaa0646af0ef4d9b5 (diff)
Merge pull request #6853 from piwik/6841
Tracker should not error out when config/config.ini.php is not created yet (eg. during installation)
Diffstat (limited to 'core')
-rw-r--r--core/Tracker.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index cb7b4494c5..fae00a57ef 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -62,7 +62,12 @@ class Tracker
public static function loadTrackerEnvironment()
{
SettingsServer::setIsTrackerApiRequest();
- $GLOBALS['PIWIK_TRACKER_DEBUG'] = (bool) TrackerConfig::getConfigValue('debug');
+ try {
+ $debug = (bool)TrackerConfig::getConfigValue('debug');
+ } catch(Exception $e) {
+ $debug = false;
+ }
+ $GLOBALS['PIWIK_TRACKER_DEBUG'] = $debug;
PluginManager::getInstance()->loadTrackerPlugins();
}