diff options
author | Matthieu Aubry <matt@piwik.org> | 2014-12-15 06:10:11 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2014-12-15 06:10:11 +0300 |
commit | 4c079dbe2eecf514a878f8075e7b23a3c447498e (patch) | |
tree | e94898706531a1e4cdf9b91bca105b34ec0cd3bb /core | |
parent | f41b9b3b30f1864190b375e636c128d7dadbad84 (diff) | |
parent | 2e9a262f59e2ae86a1d596cbaa0646af0ef4d9b5 (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.php | 7 |
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(); } |