]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2372 fixed the entity included in profile update event
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 13 Jan 2011 02:34:43 +0000 (02:34 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 13 Jan 2011 02:34:43 +0000 (02:34 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7875 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/profile/edit.php

index 2d7c25d37c5959d0aa1c51a1a004cad21bc1ec11..260f2aba9a12c450db9fa8099c7c87ea98b784b1 100644 (file)
@@ -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"));
 }