diff options
author | Stephan Peijnik <speijnik@anexia-it.com> | 2014-07-11 10:36:28 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-08-19 13:55:35 +0200 |
commit | 2df52e54d712a148f91c0945d95ffac2dc78802a (patch) | |
tree | eef3f86f5c0cd508c6ac2d1489fd056abd4cf920 /lib/private/connector | |
parent | fdfc5c67f8e90ac0a439579e9a64d1a643686bd3 (diff) | |
download | nextcloud-server-2df52e54d712a148f91c0945d95ffac2dc78802a.tar.gz nextcloud-server-2df52e54d712a148f91c0945d95ffac2dc78802a.zip |
Fix STORAGE_* constants usage by moving those constants into \OC\Files\Filesystem.
As constants not defined within a class cannot be automatically found by the
autoloader moving those constants into a class makes them accessible to
code which uses them.
Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
Diffstat (limited to 'lib/private/connector')
-rw-r--r-- | lib/private/connector/sabre/quotaplugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/quotaplugin.php b/lib/private/connector/sabre/quotaplugin.php index cf3c1103f84..a215a772c03 100644 --- a/lib/private/connector/sabre/quotaplugin.php +++ b/lib/private/connector/sabre/quotaplugin.php @@ -72,7 +72,7 @@ class OC_Connector_Sabre_QuotaPlugin extends \Sabre\DAV\ServerPlugin { $length -= $chunkHandler->getCurrentSize(); } $freeSpace = $this->getFreeSpace($parentUri); - if ($freeSpace !== \OC\Files\SPACE_UNKNOWN && $length > $freeSpace) { + if ($freeSpace !== \OC\Files\Filesystem::SPACE_UNKNOWN && $length > $freeSpace) { if (isset($chunkHandler)) { $chunkHandler->cleanup(); } |