aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/edit.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 13:54:14 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-20 13:54:14 +0000
commit7325d9435831b43c91af6eb3d13b259c02b2a439 (patch)
treef885d308d1ea71acbc94296f8ae3f2ff051cae5f /mod/profile/edit.php
parent28826aff64178c7422e6424c81c1771d9dfdc7dd (diff)
downloadelgg-7325d9435831b43c91af6eb3d13b259c02b2a439.tar.gz
elgg-7325d9435831b43c91af6eb3d13b259c02b2a439.tar.bz2
Widget gallery updates - internationalised and more
git-svn-id: https://code.elgg.org/elgg/trunk@1025 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/edit.php')
-rw-r--r--mod/profile/edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/profile/edit.php b/mod/profile/edit.php
index 9db4848dd..50f4b0955 100644
--- a/mod/profile/edit.php
+++ b/mod/profile/edit.php
@@ -17,7 +17,9 @@
if (!isloggedin()) forward();
// Get current user for now
- $user = $_SESSION['user'];
+ if (!$user = page_owner_entity()) {
+ $user = $_SESSION['user'];
+ }
// Get form, if we're allowed to edit
if ($user->canEdit()) {