diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2014-09-17 10:07:32 -0400 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-11-23 14:12:31 +0100 |
commit | 9caf4ffbfc2be077a1431149e77be485cd087081 (patch) | |
tree | e420a23bd67c20add4d1dda1e783d1c01024190a /apps/files/ajax | |
parent | bf672d7e51bd3411130a3c3a41a931fb3d23ff68 (diff) | |
download | nextcloud-server-9caf4ffbfc2be077a1431149e77be485cd087081.tar.gz nextcloud-server-9caf4ffbfc2be077a1431149e77be485cd087081.zip |
Replacing ini_get instances with inigetwrapper usages
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 18e9cfe6117..14f56a24b4b 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -114,7 +114,7 @@ foreach ($_FILES['files']['error'] as $error) { $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: ') - . ini_get('upload_max_filesize'), + . OC::$server->getIniWrapper()->getNumeric('upload_max_filesize'), UPLOAD_ERR_FORM_SIZE => $l->t('The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'), UPLOAD_ERR_PARTIAL => $l->t('The uploaded file was only partially uploaded'), UPLOAD_ERR_NO_FILE => $l->t('No file was uploaded'), |