mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 13:48:55 +00:00
[feature/avatars] Use request class in upload avatar
PHPBB3-10018
This commit is contained in:
parent
0a8d1220a3
commit
072615dc6e
1 changed files with 2 additions and 1 deletions
|
@ -77,8 +77,9 @@ class phpbb_avatar_driver_upload extends phpbb_avatar_driver
|
||||||
$upload = new fileupload('AVATAR_', array('jpg', 'jpeg', 'gif', 'png'), $this->config['avatar_filesize'], $this->config['avatar_min_width'], $this->config['avatar_min_height'], $this->config['avatar_max_width'], $this->config['avatar_max_height'], (isset($this->config['mime_triggers']) ? explode('|', $this->config['mime_triggers']) : false));
|
$upload = new fileupload('AVATAR_', array('jpg', 'jpeg', 'gif', 'png'), $this->config['avatar_filesize'], $this->config['avatar_min_width'], $this->config['avatar_min_height'], $this->config['avatar_max_width'], $this->config['avatar_max_height'], (isset($this->config['mime_triggers']) ? explode('|', $this->config['mime_triggers']) : false));
|
||||||
|
|
||||||
$url = $this->request->variable('av_upload_url', '');
|
$url = $this->request->variable('av_upload_url', '');
|
||||||
|
$upload_file = $this->request->file('av_upload_file');
|
||||||
|
|
||||||
if (!empty($_FILES['av_upload_file']['name']))
|
if (!empty($upload_file['name']))
|
||||||
{
|
{
|
||||||
$file = $upload->form_upload('av_upload_file');
|
$file = $upload->form_upload('av_upload_file');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue