From 36e4c5548ac36a67048706bf9c17f6eece082666 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 25 Jan 2009 12:56:52 +0000 Subject: Fixes #709: get_language() now fails correctly. @ben Why is this introduced? Surely this is the same as get_current_language()? git-svn-id: https://code.elgg.org/elgg/trunk@2615 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/languages.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/lib/languages.php b/engine/lib/languages.php index 16af24446..3b05f6753 100644 --- a/engine/lib/languages.php +++ b/engine/lib/languages.php @@ -89,9 +89,8 @@ if ((empty($language)) && (isset($CONFIG->language))) $language = $CONFIG->language; - if (!empty($lang)) { - $lang = $language; - return $lang; + if (!empty($language)) { + return $language; } return false; -- cgit v1.2.3