aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/admin.php
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2014-09-17 10:07:32 -0400
committerMorris Jobke <hey@morrisjobke.de>2015-11-23 14:12:31 +0100
commit9caf4ffbfc2be077a1431149e77be485cd087081 (patch)
treee420a23bd67c20add4d1dda1e783d1c01024190a /apps/files/admin.php
parentbf672d7e51bd3411130a3c3a41a931fb3d23ff68 (diff)
downloadnextcloud-server-9caf4ffbfc2be077a1431149e77be485cd087081.tar.gz
nextcloud-server-9caf4ffbfc2be077a1431149e77be485cd087081.zip
Replacing ini_get instances with inigetwrapper usages
Diffstat (limited to 'apps/files/admin.php')
-rw-r--r--apps/files/admin.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php
index 786a8edf2a6..f23f9b52698 100644
--- a/apps/files/admin.php
+++ b/apps/files/admin.php
@@ -30,9 +30,8 @@
OCP\User::checkAdminUser();
$htaccessWorking=(getenv('htaccessWorking')=='true');
-
-$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
-$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
+$upload_max_filesize = OC::$server->getIniWrapper()->getBytes('upload_max_filesize');
+$post_max_size = OC::$server->getIniWrapper()->getBytes('post_max_size');
$maxUploadFilesize = OCP\Util::humanFileSize(min($upload_max_filesize, $post_max_size));
if($_POST && OC_Util::isCallRegistered()) {
if(isset($_POST['maxUploadSize'])) {