summaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/application.php')
-rw-r--r--core/application.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/application.php b/core/application.php
index 5d12ea0280e..cca2c600118 100644
--- a/core/application.php
+++ b/core/application.php
@@ -88,8 +88,8 @@ class Application extends App {
/**
* Core class wrappers
*/
- $container->registerService('IsEncryptionEnabled', function() {
- return \OC_App::isEnabled('files_encryption');
+ $container->registerService('IsEncryptionEnabled', function(SimpleContainer $c) {
+ return $c->query('ServerContainer')->getEncryptionManager()->isEnabled();
});
$container->registerService('URLGenerator', function(SimpleContainer $c) {
return $c->query('ServerContainer')->getURLGenerator();