also fix login errors while filesystem is not loaded in app.php

remotes/origin/stable6
Florin Peter 2013-05-31 12:56:08 +07:00
parent 88d74c33af
commit 1c4c89418b
1 changed files with 6 additions and 0 deletions

@ -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);