From e70fe87c24c1447705d798ee89f10a46f245e54a Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 6 Mar 2009 11:24:51 +0000 Subject: Closes #838: Missing set from static var. git-svn-id: https://code.elgg.org/elgg/trunk@3108 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/languages.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/languages.php b/engine/lib/languages.php index ca1711380..71ed57bcf 100644 --- a/engine/lib/languages.php +++ b/engine/lib/languages.php @@ -107,7 +107,9 @@ static $CURRENT_LANGUAGE; if ((!$CURRENT_LANGUAGE) && (!$language)) - $CURRENT_LANGUAGE = $language = get_language(); + $CURRENT_LANGUAGE = $language = get_language(); + else + $language = $CURRENT_LANGUAGE; if (isset($CONFIG->translations[$language][$message_key])) { return $CONFIG->translations[$language][$message_key]; -- cgit v1.2.3