From 724ff6264abce5778065ebb77beda7a49777e48c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 28 Aug 2014 17:00:35 +0200 Subject: [PATCH] Remove unneeded file initialization in encryption, already handled in a hook --- apps/files_encryption/appinfo/app.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php index a90f618e24..922d988516 100644 --- a/apps/files_encryption/appinfo/app.php +++ b/apps/files_encryption/appinfo/app.php @@ -35,22 +35,6 @@ if (!OC_Config::getValue('maintenance', false)) { if(!in_array('crypt', stream_get_wrappers())) { 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\Files\View('/'); - - $sessionReady = OCA\Encryption\Helper::checkRequirements(); - if($sessionReady) { - $session = new \OCA\Encryption\Session($view); - } - } } else { // logout user if we are in maintenance to force re-login OCP\User::logout();