Skip to content
Snippets Groups Projects
Commit 3ea9432d authored by Thomas Müller's avatar Thomas Müller
Browse files

fixing undefined variable $l

parent 0405edc7
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,11 @@ if (!isset($_FILES['files'])) {
OCP\JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' )));
exit();
}
$l=OC_L10N::get('files');
foreach ($_FILES['files']['error'] as $error) {
if ($error != 0) {
$l=OC_L10N::get('files');
$errors = array(
UPLOAD_ERR_OK=>$l->t('There is no error, the file uploaded with success'),
UPLOAD_ERR_INI_SIZE=>$l->t('The uploaded file exceeds the upload_max_filesize directive in php.ini: ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment