diff options
author | Thatbitextra <thatbitextra@phpbb.com> | 2010-04-28 16:57:16 -0400 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-07-07 16:45:00 +0200 |
commit | e130a6bad94f534b3e573efcdb2b94332426598e (patch) | |
tree | 36b8458990065a4a6b9d6f2ac0d968998edbe66a /phpBB/includes/acp/acp_users.php | |
parent | 4ac5d5e3527da561c37e24e778bd6dad23e1bf83 (diff) | |
download | forums-e130a6bad94f534b3e573efcdb2b94332426598e.tar forums-e130a6bad94f534b3e573efcdb2b94332426598e.tar.gz forums-e130a6bad94f534b3e573efcdb2b94332426598e.tar.bz2 forums-e130a6bad94f534b3e573efcdb2b94332426598e.tar.xz forums-e130a6bad94f534b3e573efcdb2b94332426598e.zip |
[ticket/9451] Add optional $can_upload parameter to avatar_process_user().
Avoid unnecessary overhead in avatar_process_user() by optionally passing in
the value of $can_upload.
PHPBB3-9451
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r-- | phpBB/includes/acp/acp_users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 7914edd056..3a405da825 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -1706,7 +1706,7 @@ class acp_users trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action . '&u=' . $user_id), E_USER_WARNING); } - if (avatar_process_user($error, $user_row)) + if (avatar_process_user($error, $user_row, $can_upload)) { trigger_error($user->lang['USER_AVATAR_UPDATED'] . adm_back_link($this->u_action . '&u=' . $user_row['user_id'])); } |