aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-15 08:46:31 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-15 09:17:30 +0200
commit2c988ecbf498bebd8ac904e0c457521350cf469f (patch)
tree9a5be8451b1c763c5009b89f52993372cacaf735 /settings
parente8d6621a2485196c66d0743df3072da3b9e9c36b (diff)
downloadnextcloud-server-2c988ecbf498bebd8ac904e0c457521350cf469f.tar.gz
nextcloud-server-2c988ecbf498bebd8ac904e0c457521350cf469f.zip
Use the themed Defaults everywhere
Diffstat (limited to 'settings')
-rw-r--r--settings/Application.php2
-rw-r--r--settings/Controller/MailSettingsController.php1
-rw-r--r--settings/personal.php2
3 files changed, 2 insertions, 3 deletions
diff --git a/settings/Application.php b/settings/Application.php
index aedf1e00b2d..1549b273c51 100644
--- a/settings/Application.php
+++ b/settings/Application.php
@@ -227,7 +227,7 @@ class Application extends App {
return $c->query('ServerContainer')->getMailer();
});
$container->registerService('Defaults', function(IContainer $c) {
- return new \OC_Defaults;
+ return $c->query('ServerContainer')->getThemingDefaults();
});
$container->registerService('DefaultMailAddress', function(IContainer $c) {
return Util::getDefaultEmailAddress('no-reply');
diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php
index 11f72e7e8ee..cd3c6e2224a 100644
--- a/settings/Controller/MailSettingsController.php
+++ b/settings/Controller/MailSettingsController.php
@@ -29,7 +29,6 @@ use OCP\IRequest;
use OCP\IL10N;
use OCP\IConfig;
use OCP\Mail\IMailer;
-use OCP\Mail\IMessage;
/**
* @package OC\Settings\Controller
diff --git a/settings/personal.php b/settings/personal.php
index e7a928f88bf..0519e68beaa 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -37,7 +37,7 @@
OC_Util::checkLoggedIn();
-$defaults = new OC_Defaults(); // initialize themable default strings and urls
+$defaults = \OC::$server->getThemingDefaults();
$certificateManager = \OC::$server->getCertificateManager();
$config = \OC::$server->getConfig();
$urlGenerator = \OC::$server->getURLGenerator();