Fix loading of ThemingDefaults

This commit is contained in:
Julius Haertl 2016-08-19 11:26:22 +02:00
parent 3ccd69707e
commit 162b153f22
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 1 deletions

View file

@ -644,7 +644,7 @@ class Server extends ServerContainer implements IServerContainer {
});
$this->registerService('ThemingDefaults', function(Server $c) {
try {
$classExists = class_exists('OCA\Theming\Template');
$classExists = class_exists('OCA\Theming\ThemingDefaults');
} catch (\OCP\AutoloadNotAllowedException $e) {
// App disabled or in maintenance mode
$classExists = false;

View file

@ -158,6 +158,7 @@ class ServerTest extends \Test\TestCase {
['TagManager', '\OCP\ITagManager'],
['TempManager', '\OC\TempManager'],
['TempManager', '\OCP\ITempManager'],
['ThemingDefaults', '\OCA\Theming\ThemingDefaults'],
['TrustedDomainHelper', '\OC\Security\TrustedDomainHelper'],
['SystemTagManager', '\OCP\SystemTag\ISystemTagManager'],