From b8a48b55a359bb56f9cdf2d4c8099394d7f0cbb1 Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Sun, 28 Oct 2012 13:47:53 +0100
Subject: [PATCH] make sure all filesystem apps are loaded when setupFS is
 proceeded, to make sure the emmited setup-hook is received. Fixes #89

---
 lib/util.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/util.php b/lib/util.php
index c49e7cfc234..f67f8d1fe3f 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -24,6 +24,11 @@ class OC_Util {
 			$user = OC_User::getUser();
 		}
 
+		// load all filesystem apps before, so no setup-hook gets lost
+		if(!$RUNTIME_NOAPPS) {
+			OC_App::loadApps(array('filesystem'));
+		}
+
 		// the filesystem will finish when $user is not empty,
 		// mark fs setup here to avoid doing the setup from loading
 		// OC_Filesystem
-- 
GitLab