diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-31 12:56:08 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-31 20:06:43 +0200 |
commit | 1ef101c439defb3fc8ed3789f92ea3cb2cfa169c (patch) | |
tree | d040695a16a2be30875fcc1f91665953cde87185 | |
parent | a1401f686a4d04296aaba938fabad0778cbbd08d (diff) | |
download | nextcloud-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.php | 6 |
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); |