aboutsummaryrefslogtreecommitdiff
path: root/views/default/user/settings/name.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/user/settings/name.php')
-rw-r--r--views/default/user/settings/name.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/user/settings/name.php b/views/default/user/settings/name.php
index 0faac2428..57b1a1050 100644
--- a/views/default/user/settings/name.php
+++ b/views/default/user/settings/name.php
@@ -10,7 +10,7 @@
* @link http://elgg.org/
*/
- $user = $_SESSION['user'];
+ $user = page_owner_entity();
if ($user) {
?>