diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-02-20 06:38:00 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-02-20 06:38:00 +0300 |
commit | 50a5eaef4f60e5dd695b3c90df5520f9c8ee9b62 (patch) | |
tree | 22d065fd9f7564682fa89d67aa68e60b22889330 /core/Config.php | |
parent | ec9ba8d3e6567c87f1c8020f9726b9c5e66dcf2a (diff) |
Rename variable
Diffstat (limited to 'core/Config.php')
-rw-r--r-- | core/Config.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/Config.php b/core/Config.php index eff1723a94..014424c119 100644 --- a/core/Config.php +++ b/core/Config.php @@ -62,7 +62,7 @@ class Config extends Singleton /** * @var boolean */ - protected $isTest = false; + protected $doNotWriteConfigInTests = false; /** * @var IniReader @@ -123,7 +123,7 @@ class Config extends Singleton public function setTestEnvironment($pathLocal = null, $pathGlobal = null, $pathCommon = null, $allowSaving = false) { if (!$allowSaving) { - $this->isTest = true; + $this->doNotWriteConfigInTests = true; } $this->pathLocal = $pathLocal ?: Config::getLocalConfigPath(); @@ -132,8 +132,6 @@ class Config extends Singleton $this->init(); - // this proxy will not record any data in the production database. - // this provides security for Piwik installs and tests were setup. if (isset($this->configGlobal['database_tests']) || isset($this->configLocal['database_tests']) ) { @@ -653,7 +651,7 @@ class Config extends Singleton */ protected function writeConfig($configLocal, $configGlobal, $configCommon, $configCache, $pathLocal, $clear = true) { - if ($this->isTest) { + if ($this->doNotWriteConfigInTests) { return; } |