fixing undefined variable $l
This commit is contained in:
parent
0405edc798
commit
3ea9432d43
|
@ -13,9 +13,11 @@ if (!isset($_FILES['files'])) {
|
||||||
OCP\JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' )));
|
OCP\JSON::error(array('data' => array( 'message' => 'No file was uploaded. Unknown error' )));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$l=OC_L10N::get('files');
|
||||||
|
|
||||||
foreach ($_FILES['files']['error'] as $error) {
|
foreach ($_FILES['files']['error'] as $error) {
|
||||||
if ($error != 0) {
|
if ($error != 0) {
|
||||||
$l=OC_L10N::get('files');
|
|
||||||
$errors = array(
|
$errors = array(
|
||||||
UPLOAD_ERR_OK=>$l->t('There is no error, the file uploaded with success'),
|
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: ')
|
UPLOAD_ERR_INI_SIZE=>$l->t('The uploaded file exceeds the upload_max_filesize directive in php.ini: ')
|
||||||
|
|
Loading…
Reference in New Issue