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:
authormattab <matthieu.aubry@gmail.com>2015-02-20 06:38:00 +0300
committermattab <matthieu.aubry@gmail.com>2015-02-20 06:38:00 +0300
commit50a5eaef4f60e5dd695b3c90df5520f9c8ee9b62 (patch)
tree22d065fd9f7564682fa89d67aa68e60b22889330 /core/Config.php
parentec9ba8d3e6567c87f1c8020f9726b9c5e66dcf2a (diff)
Rename variable
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php8
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;
}