aboutsummaryrefslogtreecommitdiff
path: root/actions/user/language.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/language.php')
-rw-r--r--actions/user/language.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/actions/user/language.php b/actions/user/language.php
index 1165b196e..83cc10dbd 100644
--- a/actions/user/language.php
+++ b/actions/user/language.php
@@ -8,16 +8,13 @@
* @link http://elgg.org/
*/
-global $CONFIG;
-
gatekeeper();
$language = get_input('language');
$user_id = get_input('guid');
-$user = "";
if (!$user_id) {
- $user = $_SESSION['user'];
+ $user = get_loggedin_user();
} else {
$user = get_entity($user_id);
}