From: Bjoern Schiessle Date: Wed, 25 Sep 2013 17:23:07 +0000 (+0200) Subject: fix check if app is enabled X-Git-Tag: v6.0.0alpha2~95^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=663009f895f63235d65b32f32dba532e46b9057d;p=nextcloud-server.git fix check if app is enabled --- diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 33851381919..e6d6841d396 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' ) {