diff options
Diffstat (limited to 'plugins/UserSettings/Archiver.php')
-rw-r--r-- | plugins/UserSettings/Archiver.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/UserSettings/Archiver.php b/plugins/UserSettings/Archiver.php index 1cc16b01c9..63b6ca5028 100644 --- a/plugins/UserSettings/Archiver.php +++ b/plugins/UserSettings/Archiver.php @@ -115,12 +115,11 @@ class Archiver extends \Piwik\Plugin\Archiver protected function aggregateByLanguage() { $query = $this->getLogAggregator()->queryVisitsByDimension(array("label" => self::LANGUAGE_DIMENSION)); - $languageCodes = array_keys(Common::getLanguagesList()); $countryCodes = Common::getCountriesList($includeInternalCodes = true); $metricsByLanguage = new DataArray(); while ($row = $query->fetch()) { - $langCode = Common::extractLanguageCodeFromBrowserLanguage($row['label'], $languageCodes); + $langCode = Common::extractLanguageCodeFromBrowserLanguage($row['label']); $countryCode = Common::extractCountryCodeFromBrowserLanguage($row['label'], $countryCodes, $enableLanguageToCountryGuess = true); if ($countryCode == 'xx' || $countryCode == $langCode) { |