aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorThatbitextra <thatbitextra@phpbb.com>2010-04-28 16:57:16 -0400
committerAndreas Fischer <bantu@phpbb.com>2010-07-07 16:45:00 +0200
commite130a6bad94f534b3e573efcdb2b94332426598e (patch)
tree36b8458990065a4a6b9d6f2ac0d968998edbe66a /phpBB/includes/acp/acp_users.php
parent4ac5d5e3527da561c37e24e778bd6dad23e1bf83 (diff)
downloadforums-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.php2
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 . '&amp;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 . '&amp;u=' . $user_row['user_id']));
}