aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-05 23:26:02 +0200
committerkondou <kondou@ts.unde.re>2013-09-05 23:26:02 +0200
commit221bbd275cf8dfaec5810745ad319f0daeacc8d6 (patch)
treeb796f34d4fffaff491e434ba03f8d5efef357694 /lib
parent3774632eccd255c0e8a57afc445ef659964fd63b (diff)
downloadnextcloud-server-221bbd275cf8dfaec5810745ad319f0daeacc8d6.tar.gz
nextcloud-server-221bbd275cf8dfaec5810745ad319f0daeacc8d6.zip
Use \OC_App for checking whether encryption is enabled
Diffstat (limited to 'lib')
-rw-r--r--lib/avatar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/avatar.php b/lib/avatar.php
index 5f73a9bf220..e58a596e13d 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"));
}