aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-31 12:56:08 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-31 20:06:43 +0200
commit1ef101c439defb3fc8ed3789f92ea3cb2cfa169c (patch)
treed040695a16a2be30875fcc1f91665953cde87185
parenta1401f686a4d04296aaba938fabad0778cbbd08d (diff)
downloadnextcloud-server-1ef101c439defb3fc8ed3789f92ea3cb2cfa169c.tar.gz
nextcloud-server-1ef101c439defb3fc8ed3789f92ea3cb2cfa169c.zip
also fix login errors while filesystem is not loaded in app.php
-rw-r--r--apps/files_encryption/appinfo/app.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php
index d9bb4d5e74e..99bdc2c2470 100644
--- a/apps/files_encryption/appinfo/app.php
+++ b/apps/files_encryption/appinfo/app.php
@@ -25,6 +25,12 @@ stream_wrapper_register('crypt', 'OCA\Encryption\Stream');
// check if we are logged in
if (OCP\User::isLoggedIn()) {
+
+ // ensure filesystem is loaded
+ if(!\OC\Files\Filesystem::$loaded) {
+ \OC_Util::setupFS();
+ }
+
$view = new OC_FilesystemView('/');
$session = new \OCA\Encryption\Session($view);