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:
Diffstat (limited to 'core/CacheId.php')
-rw-r--r--core/CacheId.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/CacheId.php b/core/CacheId.php
index efc3857b1f..0119c458c6 100644
--- a/core/CacheId.php
+++ b/core/CacheId.php
@@ -8,13 +8,14 @@
*/
namespace Piwik;
+use Piwik\Container\StaticContainer;
use Piwik\Plugin\Manager;
class CacheId
{
public static function languageAware($cacheId)
{
- return $cacheId . '-' . Translate::getLanguageLoaded();
+ return $cacheId . '-' . StaticContainer::get('Piwik\Translation\Translator')->getCurrentLanguage();
}
public static function pluginAware($cacheId)