aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-07 10:20:59 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-07 10:20:59 +0100
commitf3d49a89fe99e2d47779b42f9c74a10a67213b0f (patch)
tree0a8da6371692be98f168ecb11188d06a6d52cee7 /apps/files/ajax
parent0c3d97921fef6f0c831b1ba8da98933a8e9c87ae (diff)
parent728648ad77ba3d96d8e61f95a748702df3d615bd (diff)
downloadnextcloud-server-f3d49a89fe99e2d47779b42f9c74a10a67213b0f.tar.gz
nextcloud-server-f3d49a89fe99e2d47779b42f9c74a10a67213b0f.zip
Merge pull request #11131 from owncloud/use-phpini-wrapper
Replacing ini_get instances with inigetwrapper usages
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/upload.php2
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'),