mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/13904] Fix tests after changes to factory
PHPBB3-13904
This commit is contained in:
@@ -116,7 +116,7 @@ class upload extends \phpbb\avatar\driver\driver
|
||||
|
||||
if (!empty($upload_file['name']))
|
||||
{
|
||||
$file = $upload->handle_upload('form', 'avatar_upload_file');
|
||||
$file = $upload->handle_upload('files.types.form', 'avatar_upload_file');
|
||||
}
|
||||
else if (!empty($this->config['allow_avatar_remote_upload']) && !empty($url))
|
||||
{
|
||||
@@ -146,7 +146,7 @@ class upload extends \phpbb\avatar\driver\driver
|
||||
return false;
|
||||
}
|
||||
|
||||
$file = $upload->handle_upload('remote', $url);
|
||||
$file = $upload->handle_upload('files.types.remote', $url);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -197,7 +197,7 @@ class upload
|
||||
{
|
||||
$args = func_get_args();
|
||||
array_shift($args);
|
||||
$type_class = $this->factory->get('types.' . $type)
|
||||
$type_class = $this->factory->get($type)
|
||||
->set_upload($this);
|
||||
|
||||
return (is_object($type_class)) ? call_user_func_array(array($type_class, 'upload'), $args) : false;
|
||||
|
Reference in New Issue
Block a user