From d042c8f1667c7fdf63c96c640acfe3af9cadeacf Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 25 Jul 2013 16:00:48 +0200 Subject: use renamed constants --- lib/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/helper.php') 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); -- cgit v1.2.3