aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-14 20:50:34 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-14 20:50:34 +0000
commit0c2c36ff3b0329ff849930d0403f933653a84dcd (patch)
treecdd859d225d68dcfa9603997f4c183eac8864900 /mod/profile
parentb6aaba915151dd07800761a01b67ffffaee1302b (diff)
downloadelgg-0c2c36ff3b0329ff849930d0403f933653a84dcd.tar.gz
elgg-0c2c36ff3b0329ff849930d0403f933653a84dcd.tar.bz2
Merged 5928-6908 from 1.7 branch to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@6059 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/actions/edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php
index baeb49108..839b269af 100644
--- a/mod/profile/actions/edit.php
+++ b/mod/profile/actions/edit.php
@@ -104,8 +104,10 @@ if (sizeof($input) > 0) {
// Notify of profile update
trigger_elgg_event('profileupdate',$user->type,$user);
- //add to river
- add_to_river('river/user/default/profileupdate','update',$_SESSION['user']->guid,$_SESSION['user']->guid,get_default_access($_SESSION['user']));
+ //add to river if edited by self
+ if (get_loggedin_userid() == $user->guid) {
+ add_to_river('river/user/default/profileupdate','update',$_SESSION['user']->guid,$_SESSION['user']->guid,get_default_access($_SESSION['user']));
+ }
system_message(elgg_echo("profile:saved"));
}