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:
authorThomas Steur <tsteur@users.noreply.github.com>2014-07-21 18:43:51 +0400
committerThomas Steur <tsteur@users.noreply.github.com>2014-07-21 18:43:51 +0400
commit73b1ef4b581624e20f4defc08d50f70d9c6395ed (patch)
treeaee48e637ca8ac76f14f69b1bcd741d9c41dcc0b
parent20a657db05862da2a5cb53e5aa60fb9043ac710d (diff)
refs #5863 do not load each plugin language file twice if lang = en which is also default language
-rw-r--r--core/Plugin/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php
index 67f3355ce8..8d3153377d 100644
--- a/core/Plugin/Manager.php
+++ b/core/Plugin/Manager.php
@@ -983,7 +983,7 @@ class Manager extends Singleton
}
// merge in specific language translations (to overwrite english defaults)
- if (file_exists($defaultLangPath)) {
+ if ($defaultEnglishLangPath != $defaultLangPath && file_exists($defaultLangPath)) {
$translations = $this->getTranslationsFromFile($defaultLangPath);
$translationsLoaded = true;
if (isset($translations[$pluginName])) {