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 --- lib/private/files/storage/dav.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/files/storage/dav.php') diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index ce447417d20..93036b8ca44 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -243,10 +243,10 @@ class DAV extends \OC\Files\Storage\Common { if (isset($response['{DAV:}quota-available-bytes'])) { return (int)$response['{DAV:}quota-available-bytes']; } else { - return \OC\Files\SPACE_UNKNOWN; + return \OC\Files\Filesystem::SPACE_UNKNOWN; } } catch (\Exception $e) { - return \OC\Files\SPACE_UNKNOWN; + return \OC\Files\Filesystem::SPACE_UNKNOWN; } } -- cgit v1.2.3