]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix check if app is enabled
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 25 Sep 2013 17:23:07 +0000 (19:23 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 18 Oct 2013 09:50:09 +0000 (11:50 +0200)
Conflicts:
apps/files_encryption/lib/proxy.php

apps/files_encryption/lib/proxy.php

index 509e3a5aece6c0fbe475c021b53414c3e608d81c..a8e0da3ca6cd4fb3d176d0604ec8a2968b13bdfc 100644 (file)
@@ -52,7 +52,7 @@ class Proxy extends \OC_FileProxy {
                if (is_null(self::$enableEncryption)) {
 
                        if (
-                               \OCP\Config::getAppValue('files_encryption', 'enable_encryption', 'true') === 'true'
+                               \OCP\App::isEnabled('files_encryption') === true
                                && Crypt::mode() === 'server'
                        ) {
 
@@ -203,7 +203,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;
                }
@@ -294,7 +294,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://' . $relativePath, $meta['mode']);