summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2014-01-29 21:24:31 +0800
committerPellaeon Lin <nfsmwlin@gmail.com>2014-01-29 21:24:31 +0800
commit929c930b0afd682bb98eb389d7ebad91bb34d643 (patch)
tree20adfc5d00ded67604ca12404f9a34c537d1e570 /apps/files/index.php
parent19675c2c9de3580c32ee24b22b8ded11dc110b1c (diff)
downloadnextcloud-server-929c930b0afd682bb98eb389d7ebad91bb34d643.tar.gz
nextcloud-server-929c930b0afd682bb98eb389d7ebad91bb34d643.zip
Use $storageInfo['free']
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index c8b04bd4627..61b32bc6fe3 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -103,7 +103,7 @@ if ($needUpgrade) {
} else {
// information about storage capacities
$storageInfo=OC_Helper::getStorageInfo($dir);
- $freeSpace=OCP\Util::freeSpace($dir);
+ $freeSpace=$storageInfo['free'];
$uploadLimit=OCP\Util::uploadLimit();
$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
$publicUploadEnabled = \OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes');