mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
[ticket/13904] Fix minor coding issues and don't use form_upload anymore
PHPBB3-13904
This commit is contained in:
parent
11b2c938c6
commit
f9b69e73d4
@ -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))
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user