From 2c1ef9deda8db69ffb5c425e7d30de327319505c Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 13 Jan 2011 02:34:43 +0000 Subject: Fixes #2372 fixed the entity included in profile update event git-svn-id: http://code.elgg.org/elgg/trunk@7875 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/profile/edit.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'actions/profile') diff --git a/actions/profile/edit.php b/actions/profile/edit.php index 2d7c25d37..260f2aba9 100644 --- a/actions/profile/edit.php +++ b/actions/profile/edit.php @@ -96,12 +96,7 @@ if (sizeof($input) > 0) { $owner->save(); // Notify of profile update - elgg_trigger_event('profileupdate', $user->type, $user); - - //add to river if edited by self - if (get_loggedin_userid() == $user->guid) { - add_to_river('river/user/default/profileupdate', 'update', get_loggedin_userid(), get_loggedin_userid(), get_default_access(get_loggedin_user())); - } + elgg_trigger_event('profileupdate', $owner->type, $owner); system_message(elgg_echo("profile:saved")); } -- cgit v1.2.3