]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix injection of defaults 3607/head
authorMorris Jobke <hey@morrisjobke.de>
Fri, 24 Feb 2017 19:09:09 +0000 (13:09 -0600)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 28 Feb 2017 22:30:34 +0000 (16:30 -0600)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/AppFramework/DependencyInjection/DIContainer.php

index 5a7b9da929d3fc964a1afc7d4becb5efac1b0db5..86fc568076c2f9d1fd9a5ac768e2729306569663 100644 (file)
@@ -344,6 +344,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
                        return Util::getDefaultEmailAddress('no-reply');
                });
 
+               $this->registerService('OC_Defaults', function ($c) {
+                       return $c->getServer()->getThemingDefaults();
+               });
+
                $this->registerService('OCP\Encryption\IManager', function ($c) {
                        return $this->getServer()->getEncryptionManager();
                });