mirror of
https://github.com/nextcloud/server.git
synced 2024-08-13 02:10:44 +02:00
Use \OC_App for checking whether encryption is enabled
This commit is contained in:
parent
3774632ecc
commit
221bbd275c
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user