From 791751b5299b59a0c8bc5bc5dbdaf1528543d1c1 Mon Sep 17 00:00:00 2001
From: Florin Peter <github@florin-peter.de>
Date: Wed, 15 May 2013 02:32:27 +0200
Subject: [PATCH] added setter for filesystem view this is needed because there
 is no possibility to set $defaultInstance to false after filesystem::init

---
 lib/files/filesystem.php | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index c0e9d215fb..df904e1f27 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -210,7 +210,7 @@ class Filesystem {
 		return true;
 	}
 
-	/**
+    /**
 	 * Initialize system and personal mount points for a user
 	 *
 	 * @param string $user
@@ -306,6 +306,14 @@ class Filesystem {
 		return self::$defaultInstance;
 	}
 
+    /**
+     * set the default filesystem view
+     *
+     */
+    static public function setView($view) {
+        self::$defaultInstance = $view;
+    }
+
 	/**
 	 * tear down the filesystem, removing all storage providers
 	 */
-- 
GitLab