1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Trigger event with updated profile data.

This commit is contained in:
lonalore 2016-12-01 10:07:05 +01:00
parent 3fa89bc13a
commit 77bcd16569

View File

@ -1760,7 +1760,8 @@ class e_user extends e_user_model
if($sql->update('user', $updateQry) !==false)
{
e107::getEvent()->trigger('user_xup_profile_updated', $userdata);
$updatedProfile = array_replace($user, $userdata);
e107::getEvent()->trigger('user_xup_profile_updated', $updatedProfile);
e107::getLog()->add('User Profile Updated', $userdata, E_LOG_INFORMATIVE, "XUP_LOGIN", LOG_TO_ADMIN, array('user_id'=>$user['user_id'],'user_name'=>$user['user_name']));
}
else