mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ class upload extends \phpbb\avatar\driver\driver
|
||||||
|
|
||||||
if (!empty($upload_file['name']))
|
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))
|
else if (!empty($this->config['allow_avatar_remote_upload']) && !empty($url))
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,7 +52,7 @@ class form implements type_interface
|
||||||
public function upload()
|
public function upload()
|
||||||
{
|
{
|
||||||
$args = func_get_args();
|
$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…
Add table
Reference in a new issue