aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.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/ucp/ucp_profile.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/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index f4f4abad4a..363a4803b6 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -572,7 +572,7 @@ class ucp_profile
{
if (check_form_key('ucp_avatar'))
{
- if (avatar_process_user($error))
+ if (avatar_process_user($error, false, $can_upload))
{
meta_refresh(3, $this->u_action);
$message = $user->lang['PROFILE_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');