1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[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
This commit is contained in:
Thatbitextra
2010-04-28 16:57:16 -04:00
committed by Andreas Fischer
parent 4ac5d5e352
commit e130a6bad9
3 changed files with 7 additions and 4 deletions

View File

@@ -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>');