diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-02 07:36:24 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-02 07:36:24 +0400 |
commit | 719221372ffbd1be66ef65c4ad40c2604662c44f (patch) | |
tree | 94c223af282e05a82f5eb981d3b6c0be59ffc8eb /core/Config.php | |
parent | c913ce316b539e5c6ee0a1b1a3fd4c5a0c6113df (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.php | 6 |
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()) { |