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:
authordiosmosis <benaka@piwik.pro>2015-04-09 06:36:22 +0300
committerdiosmosis <benaka@piwik.pro>2015-04-09 06:36:22 +0300
commit67829227ce2d0c4473466acbc42118a7a150b14c (patch)
tree973ebb1b5aa30d0b47a8d14ce73b7524a4051be0 /core/Config
parent47e7d3a74c6b13431e489d2d652af53410f880ad (diff)
Added environment validation system test (mostly failing) that tests Piwik's behavior when INI files are gone or corrupt from each Piwik endpoint (tracker/reporting UI/console). Hacked test code to make it possible and for some tests to pass.
Diffstat (limited to 'core/Config')
-rw-r--r--core/Config/IniFileChain.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/Config/IniFileChain.php b/core/Config/IniFileChain.php
index bffca9cbc6..95516921b8 100644
--- a/core/Config/IniFileChain.php
+++ b/core/Config/IniFileChain.php
@@ -206,12 +206,7 @@ class IniFileChain
$reader = new IniReader();
foreach ($this->settingsChain as $file => $ignore) {
if (is_readable($file)) {
- try {
- $this->settingsChain[$file] = $reader->readFile($file);
- } catch (IniReadingException $ex) {
- $message = Piwik::translate('General_ExceptionUnreadableFileDisabledMethod', array($file, "parse_ini_file()"));
- throw new IniReadingException($message, $code = 0, $ex);
- }
+ $this->settingsChain[$file] = $reader->readFile($file);
}
}