From: Robin Appelman Date: Thu, 25 Jul 2013 14:00:48 +0000 (+0200) Subject: use renamed constants X-Git-Tag: v6.0.0alpha2~290^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d042c8f1667c7fdf63c96c640acfe3af9cadeacf;p=nextcloud-server.git use renamed constants --- 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);