summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-30 22:10:04 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:28 +0200
commit00338f9dca97fd7b48d96201fd607cf460c385ff (patch)
treef88bfad7483e6b7432fdf4a2af5907efead59954 /core
parent99255ff3a92b2d242f3c723979341951a303f83d (diff)
downloadnextcloud-server-00338f9dca97fd7b48d96201fd607cf460c385ff.tar.gz
nextcloud-server-00338f9dca97fd7b48d96201fd607cf460c385ff.zip
Removing files_encryption left overs
Diffstat (limited to 'core')
-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();