From 221bbd275cf8dfaec5810745ad319f0daeacc8d6 Mon Sep 17 00:00:00 2001
From: kondou <kondou@ts.unde.re>
Date: Thu, 5 Sep 2013 23:26:02 +0200
Subject: [PATCH] Use \OC_App for checking whether encryption is enabled

---
 lib/avatar.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/avatar.php b/lib/avatar.php
index 5f73a9bf22..e58a596e13 100644
--- a/lib/avatar.php
+++ b/lib/avatar.php
@@ -44,7 +44,7 @@ class OC_Avatar {
 	 * @return void
 	*/
 	public function set ($user, $data) {
-		if (\OC_Appconfig::getValue('files_encryption', 'enabled') === "yes") {
+		if (\OC_App::isEnabled('files_encryption')) {
 			$l = \OC_L10N::get('lib');
 			throw new \Exception($l->t("Custom profile pictures don't work with encryption yet"));
 		}
-- 
GitLab