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>2014-05-02 07:36:24 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-02 07:36:24 +0400
commit719221372ffbd1be66ef65c4ad40c2604662c44f (patch)
tree94c223af282e05a82f5eb981d3b6c0be59ffc8eb /core/Config.php
parentc913ce316b539e5c6ee0a1b1a3fd4c5a0c6113df (diff)
Refs #5005 Delete the config file when it is found, during installation, to prevent unexpected bugs
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Config.php b/core/Config.php
index 6fe19d2eb9..e1a6dc3649 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -332,6 +332,12 @@ class Config extends Singleton
return is_readable($this->pathLocal);
}
+ public function deleteLocalConfig()
+ {
+ $configLocal = $this->getLocalPath();
+ unlink($configLocal);
+ }
+
public function checkLocalConfigFound()
{
if (!$this->existsLocalConfig()) {