diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-08-20 19:45:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 19:45:47 +0200 |
commit | 987f62117351a658dc8c0916e38cfb0b7ca60982 (patch) | |
tree | 71baa54377f3bc4daf0329f08fa568f3e51e16ea /apps/files_sharing | |
parent | ed1f89ae1023cff43d50f0cf027337eed872a31e (diff) | |
parent | 590d46121097d8b7dcd6f722b95f9dc4bdee653e (diff) | |
download | nextcloud-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.php | 4 |
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"> |