Use \OC_App for checking whether encryption is enabled

This commit is contained in:
kondou 2013-09-05 23:26:02 +02:00
parent 3774632ecc
commit 221bbd275c

View 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"));
}