diff options
author | Cullen Walsh <ckwalsh@phpbb.com> | 2011-04-20 09:46:36 -0700 |
---|---|---|
committer | Cullen Walsh <ckwalsh@cullenwalsh.com> | 2012-03-18 22:20:45 +0000 |
commit | 611a1d647a3a63013df472b469bf1f3e6e7bd657 (patch) | |
tree | a52e511d87fee4f5fc4d52a15d48b8aa4868b9db /phpBB/includes/ucp/ucp_profile.php | |
parent | 019b9bc0735bb74d46f4e87fe006328970211dad (diff) | |
download | forums-611a1d647a3a63013df472b469bf1f3e6e7bd657.tar forums-611a1d647a3a63013df472b469bf1f3e6e7bd657.tar.gz forums-611a1d647a3a63013df472b469bf1f3e6e7bd657.tar.bz2 forums-611a1d647a3a63013df472b469bf1f3e6e7bd657.tar.xz forums-611a1d647a3a63013df472b469bf1f3e6e7bd657.zip |
[feature/avatars] Refactor avatar's handle_form
Since it was performing two distinct operations, refactor handle_form
to separate functions that prepare and process forms.
PHPBB3-10018
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index a815ec7987..a712547bd1 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -568,7 +568,7 @@ class ucp_profile { if (check_form_key('ucp_avatar')) { - $result = $avatar->handle_form($template, $user->data, $error, true); + $result = $avatar->process_form($template, $user->data, $error); if ($result && empty($error)) { @@ -592,7 +592,7 @@ class ucp_profile } } - if ($avatar->handle_form($template, $user->data, $error)) { + if ($avatar->prepare_form($template, $user->data, $error)) { $driver_u = strtoupper($driver); $template->assign_block_vars('avatar_drivers', array( |