mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13904] Add unit tests for local upload type
PHPBB3-13904
This commit is contained in:
@@ -84,19 +84,7 @@ class local extends base
|
||||
return $file;
|
||||
}
|
||||
|
||||
if (isset($upload['error']))
|
||||
{
|
||||
$error = $this->upload->assign_internal_error($upload['error']);
|
||||
|
||||
if ($error !== false)
|
||||
{
|
||||
$file->error[] = $error;
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PHP Upload file size check
|
||||
$this->check_upload_size($file);
|
||||
$file = $this->check_upload_size($file);
|
||||
if (sizeof($file->error))
|
||||
{
|
||||
|
Reference in New Issue
Block a user