diff options
author | icewind1991 <icewind1991@gmail.com> | 2013-08-19 03:38:55 -0700 |
---|---|---|
committer | icewind1991 <icewind1991@gmail.com> | 2013-08-19 03:38:55 -0700 |
commit | d7dde3cfbcb779f831130bdc65c8570437c73a71 (patch) | |
tree | 452ae55efd45a908f7f13b975438696ddbe4f4cf /lib/connector/sabre | |
parent | a1d5aba5fd3795a6ee4a87c96abf0d35d3f8116d (diff) | |
parent | d8c71ba734d95e954d4ff3af50a44b94f9f016ff (diff) | |
download | nextcloud-server-d7dde3cfbcb779f831130bdc65c8570437c73a71.tar.gz nextcloud-server-d7dde3cfbcb779f831130bdc65c8570437c73a71.zip |
Merge pull request #4467 from owncloud/storage-wrapper-quota
Move quota logic from filesystem proxy to storage wrapper
Diffstat (limited to 'lib/connector/sabre')
-rw-r--r-- | lib/connector/sabre/quotaplugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php index c80a33d04b1..34d4b676157 100644 --- a/lib/connector/sabre/quotaplugin.php +++ b/lib/connector/sabre/quotaplugin.php @@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin { } list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri); $freeSpace = \OC\Files\Filesystem::free_space($parentUri); - if ($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN && $length > $freeSpace) { + if ($freeSpace !== \OC\Files\SPACE_UNKNOWN && $length > $freeSpace) { throw new Sabre_DAV_Exception_InsufficientStorage(); } } |