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/filesystem.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/private/files/filesystem.php') diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php index 4774d25ad9e..24329754dc1 100644 --- a/lib/private/files/filesystem.php +++ b/lib/private/files/filesystem.php @@ -31,11 +31,12 @@ namespace OC\Files; use OC\Files\Storage\Loader; -const SPACE_NOT_COMPUTED = -1; -const SPACE_UNKNOWN = -2; -const SPACE_UNLIMITED = -3; class Filesystem { + const SPACE_NOT_COMPUTED = -1; + const SPACE_UNKNOWN = -2; + const SPACE_UNLIMITED = -3; + /** * @var Mount\Manager $mounts */ -- cgit v1.2.3