From 2af8afff9aa0b80a8cd974b7a1e0e8424f3d7fff Mon Sep 17 00:00:00 2001 From: mattpiwik <matthieu.aubry@gmail.com> Date: Thu, 1 Apr 2010 17:00:49 +0000 Subject: [PATCH] Moved the getLanguage call after the auth is completed. LanguageManagers need the language code after authentication, in the case the language was stored in the user preference table. Otherwise, there would be a bug where the language that was in my preference show up in the language selector as "selected" but all the content was in english. git-svn-id: http://dev.piwik.org/svn/trunk@2035 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- core/FrontController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/FrontController.php b/core/FrontController.php index 11624260a0..b9749a6e9b 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -213,7 +213,6 @@ class Piwik_FrontController throw $exceptionToThrow; } - Piwik_Translate::getInstance()->loadUserTranslation(); try { Piwik::createDatabaseObject(); @@ -242,6 +241,7 @@ class Piwik_FrontController } Zend_Registry::get('access')->reloadAccess($authAdapter); + Piwik_Translate::getInstance()->loadUserTranslation(); Piwik::raiseMemoryLimitIfNecessary(); -- GitLab