summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authoricewind1991 <icewind1991@gmail.com>2013-08-19 03:38:55 -0700
committericewind1991 <icewind1991@gmail.com>2013-08-19 03:38:55 -0700
commitd7dde3cfbcb779f831130bdc65c8570437c73a71 (patch)
tree452ae55efd45a908f7f13b975438696ddbe4f4cf /apps
parenta1d5aba5fd3795a6ee4a87c96abf0d35d3f8116d (diff)
parentd8c71ba734d95e954d4ff3af50a44b94f9f016ff (diff)
downloadnextcloud-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 'apps')
-rw-r--r--apps/files_external/lib/google.php2
-rw-r--r--apps/files_external/lib/webdav.php2
-rw-r--r--apps/files_sharing/lib/sharedstorage.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php
index e6cdacdec4f..3ce3c38389b 100644
--- a/apps/files_external/lib/google.php
+++ b/apps/files_external/lib/google.php
@@ -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();
}
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index f98be318f1c..0ef7646ace7 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -225,7 +225,7 @@ class DAV extends \OC\Files\Storage\Common{
return 0;
}
} catch(\Exception $e) {
- return \OC\Files\FREE_SPACE_UNKNOWN;
+ return \OC\Files\SPACE_UNKNOWN;
}
}
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index 5c23a9eb0d0..7384b094cb0 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -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) {