diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-11-21 17:05:41 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-11-21 23:03:21 +0100 |
commit | e9d8425f15c571df3b4c8eb0a7044a3ecbd8e373 (patch) | |
tree | 7dbe3d9a93df66dfb4104bcf38fd35330b715897 /phpBB/includes/ucp | |
parent | dbd9c1f242ae7c7660feddf2677d41aa82bd21b4 (diff) | |
download | forums-e9d8425f15c571df3b4c8eb0a7044a3ecbd8e373.tar forums-e9d8425f15c571df3b4c8eb0a7044a3ecbd8e373.tar.gz forums-e9d8425f15c571df3b4c8eb0a7044a3ecbd8e373.tar.bz2 forums-e9d8425f15c571df3b4c8eb0a7044a3ecbd8e373.tar.xz forums-e9d8425f15c571df3b4c8eb0a7044a3ecbd8e373.zip |
[ticket/13845] Add core.ucp_profile_avatar_sql
PHPBB3-13845
Diffstat (limited to 'phpBB/includes/ucp')
-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 0be1930f1a..4a3d8133b3 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -633,10 +633,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); |