aboutsummaryrefslogtreecommitdiff
path: root/views/default/user
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/user')
-rw-r--r--views/default/user/settings/email.php2
-rw-r--r--views/default/user/settings/language.php2
-rw-r--r--views/default/user/settings/name.php2
-rw-r--r--views/default/user/settings/password.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/views/default/user/settings/email.php b/views/default/user/settings/email.php
index 6b14504c7..f8dfaecaa 100644
--- a/views/default/user/settings/email.php
+++ b/views/default/user/settings/email.php
@@ -10,7 +10,7 @@
* @link http://elgg.org/
*/
- $user = $_SESSION['user'];
+ $user = page_owner_entity();
if ($user) {
?>
diff --git a/views/default/user/settings/language.php b/views/default/user/settings/language.php
index 0dbe66b26..43dc91e61 100644
--- a/views/default/user/settings/language.php
+++ b/views/default/user/settings/language.php
@@ -11,7 +11,7 @@
*/
global $CONFIG;
- $user = $_SESSION['user'];
+ $user = page_owner_entity();
if ($user) {
?>
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) {
?>
diff --git a/views/default/user/settings/password.php b/views/default/user/settings/password.php
index b180609c6..a45fb621c 100644
--- a/views/default/user/settings/password.php
+++ b/views/default/user/settings/password.php
@@ -10,7 +10,7 @@
* @link http://elgg.org/
*/
- $user = $_SESSION['user'];
+ $user = page_owner_entity();
if ($user) {
?>