diff options
author | Pellaeon Lin <nfsmwlin@gmail.com> | 2014-01-29 21:24:31 +0800 |
---|---|---|
committer | Pellaeon Lin <nfsmwlin@gmail.com> | 2014-01-29 21:24:31 +0800 |
commit | 929c930b0afd682bb98eb389d7ebad91bb34d643 (patch) | |
tree | 20adfc5d00ded67604ca12404f9a34c537d1e570 /apps/files/lib | |
parent | 19675c2c9de3580c32ee24b22b8ded11dc110b1c (diff) | |
download | nextcloud-server-929c930b0afd682bb98eb389d7ebad91bb34d643.tar.gz nextcloud-server-929c930b0afd682bb98eb389d7ebad91bb34d643.zip |
Use $storageInfo['free']
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/helper.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index e2f545e9e3f..21d1f50e587 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -6,7 +6,6 @@ class Helper { public static function buildFileStorageStatistics($dir) { $l = new \OC_L10N('files'); - $freeSpace=\OCP\Util::freeSpace($dir); $maxUploadFilesize = \OCP\Util::maxUploadFilesize($dir); $maxHumanFilesize = \OCP\Util::humanFileSize($maxUploadFilesize); $maxHumanFilesize = $l->t('Upload') . ' max. ' . $maxHumanFilesize; @@ -16,7 +15,7 @@ class Helper return array('uploadMaxFilesize' => $maxUploadFilesize, 'maxHumanFilesize' => $maxHumanFilesize, - 'freeSpace' => $freeSpace, + 'freeSpace' => $storageInfo['free'], 'usedSpacePercent' => (int)$storageInfo['relative']); } |