aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-12-18 21:07:19 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-12-18 21:07:19 +0100
commit0f000aff0dfc88ed7d40e2ef459666475a4dff3d (patch)
tree99023c5544a99d5b43eebadfef37d947c0b36545 /phpBB
parent445a8be895be4f380f68db84f385305a92d86145 (diff)
parente9d8425f15c571df3b4c8eb0a7044a3ecbd8e373 (diff)
downloadforums-0f000aff0dfc88ed7d40e2ef459666475a4dff3d.tar
forums-0f000aff0dfc88ed7d40e2ef459666475a4dff3d.tar.gz
forums-0f000aff0dfc88ed7d40e2ef459666475a4dff3d.tar.bz2
forums-0f000aff0dfc88ed7d40e2ef459666475a4dff3d.tar.xz
forums-0f000aff0dfc88ed7d40e2ef459666475a4dff3d.zip
Merge pull request #4536 from senky/ticket/13845
[ticket/13845] Add core.ucp_profile_avatar_sql
Diffstat (limited to 'phpBB')
-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);