summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-25 16:00:48 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-25 16:00:48 +0200
commitd042c8f1667c7fdf63c96c640acfe3af9cadeacf (patch)
tree9f1cd7815f939bb2480500942af48426d57db05d /lib/helper.php
parentf4b6a8aa08919a55cff48195725513d58f2d1da9 (diff)
downloadnextcloud-server-d042c8f1667c7fdf63c96c640acfe3af9cadeacf.tar.gz
nextcloud-server-d042c8f1667c7fdf63c96c640acfe3af9cadeacf.zip
use renamed constants
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php
index ca508e1d933..0d55682bdb0 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -815,14 +815,14 @@ class OC_Helper {
$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
$freeSpace = \OC\Files\Filesystem::free_space($dir);
if ((int)$upload_max_filesize === 0 and (int)$post_max_size === 0) {
- $maxUploadFilesize = \OC\Files\FREE_SPACE_UNLIMITED;
+ $maxUploadFilesize = \OC\Files\SPACE_UNLIMITED;
} elseif ((int)$upload_max_filesize === 0 or (int)$post_max_size === 0) {
$maxUploadFilesize = max($upload_max_filesize, $post_max_size); //only the non 0 value counts
} else {
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
}
- if($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN){
+ if($freeSpace !== \OC\Files\SPACE_UNKNOWN){
$freeSpace = max($freeSpace, 0);
return min($maxUploadFilesize, $freeSpace);