]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use \OC_App for checking whether encryption is enabled
authorkondou <kondou@ts.unde.re>
Thu, 5 Sep 2013 21:26:02 +0000 (23:26 +0200)
committerkondou <kondou@ts.unde.re>
Thu, 5 Sep 2013 21:26:02 +0000 (23:26 +0200)
lib/avatar.php

index 5f73a9bf220261900a7a153c434163f5d553c1c6..e58a596e13d7cde689a953e73ec6b6e1d319492b 100644 (file)
@@ -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"));
                }