]> source.dussan.org Git - nextcloud-server.git/commitdiff
use renamed constants
authorRobin Appelman <icewind@owncloud.com>
Thu, 25 Jul 2013 14:14:46 +0000 (16:14 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 25 Jul 2013 14:14:46 +0000 (16:14 +0200)
apps/files_external/lib/google.php
apps/files_external/lib/webdav.php
apps/files_sharing/lib/sharedstorage.php
lib/connector/sabre/quotaplugin.php

index ef8dd6d8cad588653991b194bbf5753c134c9529..3ce3c38389bbaf195de599be38e6d0f5bb61c842 100644 (file)
@@ -284,7 +284,7 @@ class Google extends \OC\Files\Storage\Common {
                                // Check if this is a Google Doc
                                if ($this->getMimeType($path) !== $file->getMimeType()) {
                                        // Return unknown file size
-                                       $stat['size'] = \OC\Files\FREE_SPACE_UNKNOWN;
+                                       $stat['size'] = \OC\Files\SPACE_UNKNOWN;
                                } else {
                                        $stat['size'] = $file->getFileSize();
                                }
@@ -587,4 +587,4 @@ class Google extends \OC\Files\Storage\Common {
                return false;
        }
 
-}
\ No newline at end of file
+}
index 4869322d87a9f9fcd78f21b24690ec7a46d3508e..57ff3707d36785bfb54cc5106b519358a8eeb47f 100644 (file)
@@ -224,7 +224,7 @@ class DAV extends \OC\Files\Storage\Common{
                                return 0;
                        }
                } catch(\Exception $e) {
-                       return \OC\Files\FREE_SPACE_UNKNOWN;
+                       return \OC\Files\SPACE_UNKNOWN;
                }
        }
 
index 5c23a9eb0d0a69a0c1001786538c624790a718c6..7384b094cb04dd74049f4394ce5429622a85c1e2 100644 (file)
@@ -391,7 +391,7 @@ class Shared extends \OC\Files\Storage\Common {
 
        public function free_space($path) {
                if ($path == '') {
-                       return \OC\Files\FREE_SPACE_UNKNOWN;
+                       return \OC\Files\SPACE_UNKNOWN;
                }
                $source = $this->getSourcePath($path);
                if ($source) {
index c80a33d04b1e80b5625ec7fbf93ac748bdc4fd3c..34d4b676157404c010ec9564b744e000ada65a1e 100644 (file)
@@ -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();
                        }
                }