summaryrefslogtreecommitdiffstats
path: root/lib/private/LargeFileHelper.php
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 /lib/private/LargeFileHelper.php
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 'lib/private/LargeFileHelper.php')
-rwxr-xr-xlib/private/LargeFileHelper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/LargeFileHelper.php b/lib/private/LargeFileHelper.php
index 2a6a6714eb3..c4e76d22c5a 100755
--- a/lib/private/LargeFileHelper.php
+++ b/lib/private/LargeFileHelper.php
@@ -29,6 +29,8 @@
namespace OC;
+use bantu\IniGetWrapper\IniGetWrapper;
+
/**
* Helper class for large files on 32-bit platforms.
*/
@@ -117,7 +119,7 @@ class LargeFileHelper {
* null on failure.
*/
public function getFileSizeViaCurl($fileName) {
- if (\OC::$server->getIniWrapper()->getString('open_basedir') === '') {
+ if (\OC::$server->get(IniGetWrapper::class)->getString('open_basedir') === '') {
$encodedFileName = rawurlencode($fileName);
$ch = curl_init("file:///$encodedFileName");
curl_setopt($ch, CURLOPT_NOBODY, true);