Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-15 09:46:31 +0300
committerJoas Schilling <coding@schilljs.com>2016-07-15 10:17:30 +0300
commit2c988ecbf498bebd8ac904e0c457521350cf469f (patch)
tree9a5be8451b1c763c5009b89f52993372cacaf735 /core/Application.php
parente8d6621a2485196c66d0743df3072da3b9e9c36b (diff)
Use the themed Defaults everywhere
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Application.php b/core/Application.php
index a87917b626a..1485f7a7516 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -35,7 +35,7 @@ use OC\Core\Controller\LostController;
use OC\Core\Controller\TokenController;
use OC\Core\Controller\TwoFactorChallengeController;
use OC\Core\Controller\UserController;
-use OC_Defaults;
+use OCP\Defaults;
use OCP\AppFramework\App;
use OCP\Util;
@@ -165,8 +165,8 @@ class Application extends App {
$container->registerService('UserFolder', function(SimpleContainer $c) {
return $c->query('ServerContainer')->getUserFolder();
});
- $container->registerService('Defaults', function() {
- return new OC_Defaults;
+ $container->registerService('Defaults', function(SimpleContainer $c) {
+ return $c->query('ServerContainer')->getThemingDefaults();
});
$container->registerService('Mailer', function(SimpleContainer $c) {
return $c->query('ServerContainer')->getMailer();