1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/13904] Fix minor coding issues and don't use form_upload anymore

PHPBB3-13904
This commit is contained in:
Marc Alexander 2015-07-15 13:35:38 +02:00
parent 11b2c938c6
commit f9b69e73d4
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class upload extends \phpbb\avatar\driver\driver
if (!empty($upload_file['name']))
{
$file = $upload->form_upload('avatar_upload_file');
$file = $upload->handle_upload('form', 'avatar_upload_file');
}
else if (!empty($this->config['allow_avatar_remote_upload']) && !empty($url))
{

View File

@ -52,7 +52,7 @@ class form implements type_interface
public function upload()
{
$args = func_get_args();
return $this->form_upload($args[0], $args[1]);
return $this->form_upload($args[0], (isset($args[1])) ? $args[1] : null);
}
/**