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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/user/language.php b/actions/user/language.php
index 44c591d7a..30d3b45e8 100644
--- a/actions/user/language.php
+++ b/actions/user/language.php
@@ -10,7 +10,7 @@ $language = get_input('language');
$user_id = get_input('guid');
if (!$user_id) {
- $user = get_loggedin_user();
+ $user = elgg_get_logged_in_user_entity();
} else {
$user = get_entity($user_id);
}