From 663009f895f63235d65b32f32dba532e46b9057d Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Wed, 25 Sep 2013 19:23:07 +0200
Subject: [PATCH] fix check if app is enabled

---
 apps/files_encryption/lib/proxy.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 3385138191..e6d6841d39 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -51,7 +51,8 @@ class Proxy extends \OC_FileProxy {
 
 		if (is_null(self::$enableEncryption)) {
 
-			if (\OCP\Config::getAppValue('files_encryption', 'enabled', 'true') === 'true'
+			if (
+				\OCP\App::isEnabled('files_encryption') === true
 				&& Crypt::mode() === 'server'
 			) {
 
-- 
GitLab