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-12 07:47:11 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-12 07:47:11 +0400
commita6b50c783e6599217318f09cbfc0c0fde9c0d50f (patch)
tree7f29492755e9d9b7898602df37a23454bf762807 /core/Config.php
parent3fc338a51bd001eec5a366e915d22abf84dcdc8b (diff)
Load translation before throwing exception, so message is displayed in english
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Config.php b/core/Config.php
index 2e093007c7..2351adff63 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -343,6 +343,7 @@ class Config extends Singleton
public function checkLocalConfigFound()
{
if (!$this->existsLocalConfig()) {
+ Translate::loadEnglishTranslation();
throw new Exception(Piwik::translate('General_ExceptionConfigurationFileNotFound', array($this->pathLocal)));
}
}