1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13904] Add unit tests for local upload type

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-09-07 22:51:44 +02:00
parent 7a92ad596c
commit 00e5ff9e2e
2 changed files with 161 additions and 12 deletions

View File

@@ -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))
{