From 2df52e54d712a148f91c0945d95ffac2dc78802a Mon Sep 17 00:00:00 2001 From: Stephan Peijnik Date: Fri, 11 Jul 2014 10:36:28 +0200 Subject: 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 --- apps/files_external/lib/google.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_external/lib/google.php') diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 56c0d451651..e653050c5b3 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -286,7 +286,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\SPACE_UNKNOWN; + $stat['size'] = \OC\Files\Filesystem::SPACE_UNKNOWN; } else { $stat['size'] = $file->getFileSize(); } -- cgit v1.2.3