aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2017-02-15 23:56:52 +0100
committerGitHub <noreply@github.com>2017-02-15 23:56:52 +0100
commit7f69580df3b6125941fc39d63f8498488f32231a (patch)
treef7c3816515cdbe98aee078f8ece97d79f77bd017 /phpBB/includes/ucp/ucp_profile.php
parent7646280d518a4f637ec267fadb5e563f5b149512 (diff)
parentb567c6e2414d069ba54f7a924c952069aa115237 (diff)
downloadforums-7f69580df3b6125941fc39d63f8498488f32231a.tar
forums-7f69580df3b6125941fc39d63f8498488f32231a.tar.gz
forums-7f69580df3b6125941fc39d63f8498488f32231a.tar.bz2
forums-7f69580df3b6125941fc39d63f8498488f32231a.tar.xz
forums-7f69580df3b6125941fc39d63f8498488f32231a.zip
Merge branch '3.1.x' into ticket/15011
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php11
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);