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