]> source.dussan.org Git - nextcloud-server.git/commitdiff
we don't know \OCA\Encryption\Session if the encryption app is not enabled, so we...
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Oct 2013 08:37:58 +0000 (10:37 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 4 Oct 2013 08:37:58 +0000 (10:37 +0200)
apps/files/index.php

index ecd539dbed43605151805efaa2fa22cbea9dee76..42eac209b23980ae096c764527a6012c2a8e6c4f 100644 (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('/'));