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

This commit is contained in:
Florin Peter 2013-05-31 12:56:08 +02:00
parent 88d74c33af
commit 1c4c89418b

View file

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