we don't know \OCA\Encryption\Session if the encryption app is not enabled, so we have to set the status manually

This commit is contained in:
Bjoern Schiessle 2013-10-04 10:37:58 +02:00
parent 67d4b77e8e
commit 47f59d2e42
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ if ($needUpgrade) {
$storageInfo=OC_Helper::getStorageInfo($dir);
$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
$publicUploadEnabled = \OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes');
// if the encryption app is disabled, than everything is fine
$encryptionInitStatus = \OCA\Encryption\Session::INIT_SUCCESSFUL;
// if the encryption app is disabled, than everything is fine (INIT_SUCCESSFUL status code)
$encryptionInitStatus = 2;
if (OC_App::isEnabled('files_encryption')) {
$publicUploadEnabled = 'no';
$session = new \OCA\Encryption\Session(new \OC\Files\View('/'));