use renamed constants

This commit is contained in:
Robin Appelman 2013-07-25 16:14:46 +02:00
parent e2f04b3b42
commit 88cc2ccb3b
4 changed files with 5 additions and 5 deletions

View File

@ -284,7 +284,7 @@ class Google extends \OC\Files\Storage\Common {
// Check if this is a Google Doc // Check if this is a Google Doc
if ($this->getMimeType($path) !== $file->getMimeType()) { if ($this->getMimeType($path) !== $file->getMimeType()) {
// Return unknown file size // Return unknown file size
$stat['size'] = \OC\Files\FREE_SPACE_UNKNOWN; $stat['size'] = \OC\Files\SPACE_UNKNOWN;
} else { } else {
$stat['size'] = $file->getFileSize(); $stat['size'] = $file->getFileSize();
} }
@ -587,4 +587,4 @@ class Google extends \OC\Files\Storage\Common {
return false; return false;
} }
} }

View File

@ -224,7 +224,7 @@ class DAV extends \OC\Files\Storage\Common{
return 0; return 0;
} }
} catch(\Exception $e) { } catch(\Exception $e) {
return \OC\Files\FREE_SPACE_UNKNOWN; return \OC\Files\SPACE_UNKNOWN;
} }
} }

View File

@ -391,7 +391,7 @@ class Shared extends \OC\Files\Storage\Common {
public function free_space($path) { public function free_space($path) {
if ($path == '') { if ($path == '') {
return \OC\Files\FREE_SPACE_UNKNOWN; return \OC\Files\SPACE_UNKNOWN;
} }
$source = $this->getSourcePath($path); $source = $this->getSourcePath($path);
if ($source) { if ($source) {

View File

@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
} }
list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri); list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri);
$freeSpace = \OC\Files\Filesystem::free_space($parentUri); $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(); throw new Sabre_DAV_Exception_InsufficientStorage();
} }
} }