]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if encryption app is enabled
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 20 Sep 2013 09:21:34 +0000 (11:21 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 20 Sep 2013 09:21:34 +0000 (11:21 +0200)
apps/files_encryption/lib/proxy.php

index eb7ba60cb9d17821b62cd74a3f1f68b0f387b8cb..3385138191966b3ecdf035a596145e5f66a0007b 100644 (file)
@@ -51,8 +51,7 @@ class Proxy extends \OC_FileProxy {
 
                if (is_null(self::$enableEncryption)) {
 
-                       if (
-                               \OCP\Config::getAppValue('files_encryption', 'enable_encryption', 'true') === 'true'
+                       if (\OCP\Config::getAppValue('files_encryption', 'enabled', 'true') === 'true'
                                && Crypt::mode() === 'server'
                        ) {
 
@@ -200,7 +199,7 @@ class Proxy extends \OC_FileProxy {
         */
        public function preUnlink($path) {
 
-               // let the trashbin handle this  
+               // let the trashbin handle this
                if (\OCP\App::isEnabled('files_trashbin')) {
                        return true;
                }
@@ -291,7 +290,7 @@ class Proxy extends \OC_FileProxy {
                        // Close the original encrypted file
                        fclose($result);
 
-                       // Open the file using the crypto stream wrapper 
+                       // Open the file using the crypto stream wrapper
                        // protocol and let it do the decryption work instead
                        $result = fopen('crypt://' . $path, $meta['mode']);