aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-10-28 13:30:33 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-10-28 13:30:33 +0100
commit25d42b0f10506d0a5ab182201726e702d1fc16bd (patch)
tree02052e70f7f6a992ef8f50e55b118a7a6a0cbec7 /phpBB/includes/acp
parent99abb311c7a864b622c6325a4299397fb842d610 (diff)
parent38d7ad40a3d36e6b4e727a784aae2a7154d0fc0c (diff)
downloadforums-25d42b0f10506d0a5ab182201726e702d1fc16bd.tar
forums-25d42b0f10506d0a5ab182201726e702d1fc16bd.tar.gz
forums-25d42b0f10506d0a5ab182201726e702d1fc16bd.tar.bz2
forums-25d42b0f10506d0a5ab182201726e702d1fc16bd.tar.xz
forums-25d42b0f10506d0a5ab182201726e702d1fc16bd.zip
Merge pull request #5407 from senky/ticket/15832
[ticket/15832] Add core.acp_users_avatar_sql event
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_users.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index f775d7954b..b74fe535ee 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -1883,6 +1883,17 @@ class acp_users
'user_avatar_height' => $result['avatar_height'],
);
+ /**
+ * Modify users preferences data before assigning it to the template
+ *
+ * @event core.acp_users_avatar_sql
+ * @var array user_row Array with user data
+ * @var array result Array with user avatar data to be updated in the DB
+ * @since 3.2.4-RC1
+ */
+ $vars = array('user_row', 'result');
+ extract($phpbb_dispatcher->trigger_event('core.acp_users_avatar_sql', compact($vars)));
+
$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $result) . '
WHERE user_id = ' . (int) $user_id;