From 7a83237f11b200e5f3a3634a65b377e94c0dd3a4 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 21 Nov 2011 17:07:58 +0000 Subject: [PATCH] Cosmetic on the API of the dictionnary (internal) SVN:trunk[1687] --- core/dict.class.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/dict.class.inc.php b/core/dict.class.inc.php index 179a83982..dd39b754c 100644 --- a/core/dict.class.inc.php +++ b/core/dict.class.inc.php @@ -97,7 +97,7 @@ class Dict } - public static function GetCurrentLanguage() + public static function GetUserLanguage() { if (self::$m_sCurrentLanguage == null) // May happen when no user is logged in (i.e login screen, non authentifed page) { @@ -124,12 +124,12 @@ class Dict { // Attempt to find the string in the user language // - if (!array_key_exists(self::GetCurrentLanguage(), self::$m_aData)) + if (!array_key_exists(self::GetUserLanguage(), self::$m_aData)) { // It may happen, when something happens before the dictionnaries get loaded return $sStringCode; } - $aCurrentDictionary = self::$m_aData[self::GetCurrentLanguage()]; + $aCurrentDictionary = self::$m_aData[self::GetUserLanguage()]; if (array_key_exists($sStringCode, $aCurrentDictionary)) { return $aCurrentDictionary[$sStringCode];