diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-23 16:00:50 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-23 16:00:50 -0500 |
commit | d29c2b016921176a10d348e26c3f045431ff7bc0 (patch) | |
tree | fdf7c60e56f0a498afa0a4d1b427ffd35b40f173 /lib/connector/sabre/quotaplugin.php | |
parent | a2d3333a09f9e77429f7c2c85e9d405bec453ab9 (diff) | |
download | nextcloud-server-d29c2b016921176a10d348e26c3f045431ff7bc0.tar.gz nextcloud-server-d29c2b016921176a10d348e26c3f045431ff7bc0.zip |
Reuse $freeSpace variable
Diffstat (limited to 'lib/connector/sabre/quotaplugin.php')
-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 233159e3646..c80a33d04b1 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 > \OC\Files\Filesystem::free_space($parentUri)) { + if ($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN && $length > $freeSpace) { throw new Sabre_DAV_Exception_InsufficientStorage(); } } |