diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-12-18 21:07:23 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-18 21:07:23 +0100 |
commit | 58e4ec68b6a8d5dabe72f13e41d0d520a75a8e1b (patch) | |
tree | 825a3354cd26a54f896c500842b51a55e3592209 /phpBB/includes/ucp/ucp_profile.php | |
parent | 2c9da5ad4739352bc6e8e2d7ab26b58c87892e7d (diff) | |
parent | 0f000aff0dfc88ed7d40e2ef459666475a4dff3d (diff) | |
download | forums-58e4ec68b6a8d5dabe72f13e41d0d520a75a8e1b.tar forums-58e4ec68b6a8d5dabe72f13e41d0d520a75a8e1b.tar.gz forums-58e4ec68b6a8d5dabe72f13e41d0d520a75a8e1b.tar.bz2 forums-58e4ec68b6a8d5dabe72f13e41d0d520a75a8e1b.tar.xz forums-58e4ec68b6a8d5dabe72f13e41d0d520a75a8e1b.zip |
Merge branch '3.1.x' into 3.2.x
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index a86c4f2672..41dcba0387 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -662,10 +662,19 @@ class ucp_profile 'user_avatar_height' => $result['avatar_height'], ); + /** + * Trigger events on successfull avatar change + * + * @event core.ucp_profile_avatar_sql + * @var array result Array with data to be stored in DB + * @since 3.1.11-RC1 + */ + $vars = array('result'); + extract($phpbb_dispatcher->trigger_event('core.ucp_profile_avatar_sql', compact($vars))); + $sql = 'UPDATE ' . USERS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $result) . ' WHERE user_id = ' . (int) $user->data['user_id']; - $db->sql_query($sql); meta_refresh(3, $this->u_action); |