summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-08-20 19:45:47 +0200
committerGitHub <noreply@github.com>2020-08-20 19:45:47 +0200
commit987f62117351a658dc8c0916e38cfb0b7ca60982 (patch)
tree71baa54377f3bc4daf0329f08fa568f3e51e16ea /apps/files_sharing
parented1f89ae1023cff43d50f0cf027337eed872a31e (diff)
parent590d46121097d8b7dcd6f722b95f9dc4bdee653e (diff)
downloadnextcloud-server-987f62117351a658dc8c0916e38cfb0b7ca60982.tar.gz
nextcloud-server-987f62117351a658dc8c0916e38cfb0b7ca60982.zip
Merge pull request #22331 from nextcloud/bugfix/noid/dont-use-deprecated-inigetwrapper
Don't use deprecated getIniWrapper() anymore
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/templates/public.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 82544385dec..ffc449f9e63 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -23,8 +23,8 @@
<input type="hidden" name="hideDownload" value="<?php p($_['hideDownload'] ? 'true' : 'false'); ?>" id="hideDownload">
<input type="hidden" id="disclaimerText" value="<?php p($_['disclaimer']) ?>">
<?php
-$upload_max_filesize = OC::$server->getIniWrapper()->getBytes('upload_max_filesize');
-$post_max_size = OC::$server->getIniWrapper()->getBytes('post_max_size');
+$upload_max_filesize = OC::$server->get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('upload_max_filesize');
+$post_max_size = OC::$server->get(\bantu\IniGetWrapper\IniGetWrapper::class)->getBytes('post_max_size');
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
?>
<input type="hidden" name="maxFilesizeUpload" value="<?php p($maxUploadFilesize); ?>" id="maxFilesizeUpload">